diff options
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 784187f8763..391b2f2d60b 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -351,13 +351,9 @@ class CommandDictCommandPartialMatch { // A NULL or empty string matches everything. if (m_match_str == NULL || *m_match_str == '\0') - return 1; + return true; - size_t found = map_element.first.find (m_match_str, 0); - if (found == std::string::npos) - return 0; - else - return found == 0; + return map_element.first.find (m_match_str, 0) == 0; } private: |