summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-20 16:36:43 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-20 16:36:43 +0000
commitea9fc18163568dde4561c1d02261eb21f5aca0a7 (patch)
tree647bef79f8b2b5334c1737ea732ff4befd9ef246 /lldb/source/Core/Debugger.cpp
parent201a88591d2bb27d2d4b38e356254d413eff60e0 (diff)
downloadbcm5719-llvm-ea9fc18163568dde4561c1d02261eb21f5aca0a7.tar.gz
bcm5719-llvm-ea9fc18163568dde4561c1d02261eb21f5aca0a7.zip
Fixed lldb 'settings set term-widt 70' command not working.
rdar://problem/8449849 llvm-svn: 114328
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 767b528aa42..eb46c238538 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1311,7 +1311,7 @@ DebuggerInstanceSettings::ValidTermWidthValue (const char *value, Error err)
char *end = NULL;
const uint32_t width = ::strtoul (value, &end, 0);
- if (end && end == '\0')
+ if (end && end[0] == '\0')
{
if (width >= 10 || width <= 1024)
valid = true;
OpenPOWER on IntegriCloud