summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-03-13 23:48:40 +0000
committerGreg Clayton <gclayton@apple.com>2014-03-13 23:48:40 +0000
commit05da458caf9feccd27c7215d917f7783dc40e288 (patch)
tree216e3b3b7d6196d811dc248e880c0920b725c8df /lldb/source/Commands/CommandObjectExpression.cpp
parent487143fdd3aa4284f62ecc47f9c1eead1f6f7cd4 (diff)
downloadbcm5719-llvm-05da458caf9feccd27c7215d917f7783dc40e288.tar.gz
bcm5719-llvm-05da458caf9feccd27c7215d917f7783dc40e288.zip
One more time. Multi-line expressions when there is no valid expression that follow “expr [options] —“.
llvm-svn: 203874
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 a80d580f036..c265130bf6b 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 && expr[0] == '\0')
+ if (expr == NULL || expr[0] == '\0')
{
GetMultilineExpression ();
return result.Succeeded();
OpenPOWER on IntegriCloud