diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectLog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp index e4c5a8656ed..85134442213 100644 --- a/lldb/source/Commands/CommandObjectLog.cpp +++ b/lldb/source/Commands/CommandObjectLog.cpp @@ -387,8 +387,9 @@ protected: } if (strcasecmp(sub_command, "increment") == 0) { bool success; - bool increment = - Args::StringToBoolean(args.GetArgumentAtIndex(1), false, &success); + bool increment = Args::StringToBoolean( + llvm::StringRef::withNullAsEmpty(args.GetArgumentAtIndex(1)), false, + &success); if (success) { Timer::SetQuiet(!increment); result.SetStatus(eReturnStatusSuccessFinishNoResult); |