summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-03-13 23:46:26 +0000
committerGreg Clayton <gclayton@apple.com>2014-03-13 23:46:26 +0000
commit487143fdd3aa4284f62ecc47f9c1eead1f6f7cd4 (patch)
tree07a7716040220351fcd63257f5c88278a5bb96dc /lldb/source/Commands/CommandObjectExpression.cpp
parentcf28a8b7cd589c3dcdd7163189e12b6c980fa474 (diff)
downloadbcm5719-llvm-487143fdd3aa4284f62ecc47f9c1eead1f6f7cd4.tar.gz
bcm5719-llvm-487143fdd3aa4284f62ecc47f9c1eead1f6f7cd4.zip
Fixed crasher when “expr” was NULL due to no characters following the terminating "--".
llvm-svn: 203873
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index cd4613a10f4..a80d580f036 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -484,7 +484,7 @@ CommandObjectExpression::DoExecute
}
// No expression following options
- if (expr[0] == '\0')
+ if (expr && expr[0] == '\0')
{
GetMultilineExpression ();
return result.Succeeded();
OpenPOWER on IntegriCloud