summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-04 00:09:44 +0000
committerZachary Turner <zturner@google.com>2016-10-04 00:09:44 +0000
commitbbae6a94e86970a516b0a854634246d764273b05 (patch)
treeda13c865f94ddf92270160717cefb1971251e49d /lldb/source/Plugins/Process/gdb-remote
parent038aadd87f15ef8cc9cdb5b3ffc0b91d4c429ecf (diff)
downloadbcm5719-llvm-bbae6a94e86970a516b0a854634246d764273b05.tar.gz
bcm5719-llvm-bbae6a94e86970a516b0a854634246d764273b05.zip
Try to fix failing tests when running remote test suite.
llvm-svn: 283168
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp2
1 files changed, 1 insertions, 1 deletions
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];
OpenPOWER on IntegriCloud