diff options
Diffstat (limited to 'linker/linker_logger.cpp')
-rw-r--r-- | linker/linker_logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker_logger.cpp b/linker/linker_logger.cpp index 4c6603b6a..d0e507218 100644 --- a/linker/linker_logger.cpp +++ b/linker/linker_logger.cpp @@ -106,8 +106,8 @@ void LinkerLogger::ResetState() { static CachedProperty debug_ld_all("debug.ld.all"); flags_ |= ParseProperty(debug_ld_all.Get()); - // Ignore processes started without argv (http://b/33276926). - if (g_argv[0] == nullptr) { + // Safeguard against a NULL g_argv. Ignore processes started without argv (http://b/33276926). + if (g_argv == nullptr || g_argv[0] == nullptr) { return; } |