Skip to content

Commit 3dc3207

Browse files
ckerrtargos
authored andcommitted
src: do not pass nullptr to std::string ctor
fixes -Wnonnull warning on some compilers PR-URL: #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>
1 parent 792ef16 commit 3dc3207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug_utils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class Win32SymbolDebuggingContext final : public NativeSymbolDebuggingContext {
254254
USE(GetLastError());
255255
#endif // DEBUG
256256
}
257-
return nullptr;
257+
return {};
258258
}
259259

260260
SymbolInfo LookupSymbol(void* address) override {

0 commit comments

Comments
 (0)