From 45a2b8532b014032f2d263ef412271a05128fa96 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 8 Mar 2025 21:48:08 -0600 Subject: [PATCH] src: do not pass nullptr to std::string ctor fixes -Wnonnull warning on some compilers PR-URL: https://github.com/nodejs/node/pull/57354 Reviewed-By: Daeyeon Jeong Reviewed-By: Yagiz Nizipli Reviewed-By: Chengzhong Wu Reviewed-By: Shelley Vohr Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- src/debug_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug_utils.cc b/src/debug_utils.cc index c8b3b11ee34..8a85e066fd9 100644 --- a/src/debug_utils.cc +++ b/src/debug_utils.cc @@ -254,7 +254,7 @@ class Win32SymbolDebuggingContext final : public NativeSymbolDebuggingContext { USE(GetLastError()); #endif // DEBUG } - return nullptr; + return {}; } SymbolInfo LookupSymbol(void* address) override {