summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/RegularExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/RegularExpression.cpp')
-rw-r--r--lldb/source/Core/RegularExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/RegularExpression.cpp b/lldb/source/Core/RegularExpression.cpp
index 731974ad76b..4ccd7748b13 100644
--- a/lldb/source/Core/RegularExpression.cpp
+++ b/lldb/source/Core/RegularExpression.cpp
@@ -129,7 +129,7 @@ bool
RegularExpression::Execute(const char* s, Match *match, int execute_flags) const
{
int err = 1;
- if (m_comp_err == 0)
+ if (s != NULL && m_comp_err == 0)
{
if (match)
{
OpenPOWER on IntegriCloud