From bbae6a94e86970a516b0a854634246d764273b05 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 4 Oct 2016 00:09:44 +0000 Subject: Try to fix failing tests when running remote test suite. llvm-svn: 283168 --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp index 80139cedc7a..899037ae98a 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp @@ -66,7 +66,7 @@ void ProcessGDBRemoteLog::DisableLog(const char **categories, if (log) { uint32_t flag_bits = 0; - if (categories[0] != NULL) { + if (categories && categories[0]) { flag_bits = log->GetMask().Get(); for (size_t i = 0; categories[i] != NULL; ++i) { const char *arg = categories[i]; -- cgit v1.2.3