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 <daeyeon.dev@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Charles Kerr authored and RafaelGSS committed 2025-04-17 10:51:30 -03:00
1 parent 2a2e1cfd71
commit 45a2b8532b
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@ class Win32SymbolDebuggingContext final : public NativeSymbolDebuggingContext {
USE(GetLastError());
#endif // DEBUG
}
return nullptr;
return {};
}
SymbolInfo LookupSymbol(void* address) override {