diff options
Diffstat (limited to 'lldb/source/Core/IOHandler.cpp')
-rw-r--r-- | lldb/source/Core/IOHandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index 203b9e8af07..51cae59639f 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -243,8 +243,7 @@ int IOHandlerDelegate::IOHandlerComplete( size_t num_matches = request.GetNumberOfMatches(); if (num_matches > 0) { - std::string common_prefix; - matches.LongestCommonPrefix(common_prefix); + std::string common_prefix = matches.LongestCommonPrefix(); const size_t partial_name_len = request.GetCursorArgumentPrefix().size(); // If we matched a unique single command, add a space... Only do this if |