diff options
Diffstat (limited to 'lldb/source/Core/RegularExpression.cpp')
-rw-r--r-- | lldb/source/Core/RegularExpression.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Core/RegularExpression.cpp b/lldb/source/Core/RegularExpression.cpp index 8099cd16899..d98bf484abf 100644 --- a/lldb/source/Core/RegularExpression.cpp +++ b/lldb/source/Core/RegularExpression.cpp @@ -184,6 +184,8 @@ RegularExpression::IsValid () const const char* RegularExpression::GetText () const { + if (m_re.empty()) + return NULL; return m_re.c_str(); } |