mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
2a2e1cfd71
commit
45a2b8532b
1 file changed
+1
-1
+1
-1
@@ -254,7 +254,7 @@ class Win32SymbolDebuggingContext final : public NativeSymbolDebuggingContext {
|
||||
USE(GetLastError());
|
||||
#endif // DEBUG
|
||||
}
|
||||
return nullptr;
|
||||
return {};
|
||||
}
|
||||
|
||||
SymbolInfo LookupSymbol(void* address) override {
|
||||
|
||||
Reference in new issue
Block a user