mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Fixed lldb 'settings set term-widt 70' command not working.
rdar://problem/8449849 llvm-svn: 114328
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user