summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
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