diff options
author | Jim Ingham <jingham@apple.com> | 2010-12-01 00:42:17 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-12-01 00:42:17 +0000 |
commit | 97253e62e9a6a179346784d6dab628d564e92fe1 (patch) | |
tree | 82f75486d7ef1757871923dbc42eb8154ec6cd3d /lldb/source/Commands/CommandObjectHelp.cpp | |
parent | 447280176511ccd0b8ee5d11914f182c84187cc4 (diff) | |
download | bcm5719-llvm-97253e62e9a6a179346784d6dab628d564e92fe1.tar.gz bcm5719-llvm-97253e62e9a6a179346784d6dab628d564e92fe1.zip |
GetCommandObject returns no matches in the match array when there is only one match. That's odd, but I don't want to change that right now, just cope with it where I'm doing the command matching.
llvm-svn: 120511
Diffstat (limited to 'lldb/source/Commands/CommandObjectHelp.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectHelp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp index 7d526747aa9..416bdd542ba 100644 --- a/lldb/source/Commands/CommandObjectHelp.cpp +++ b/lldb/source/Commands/CommandObjectHelp.cpp @@ -94,7 +94,7 @@ CommandObjectHelp::Execute (Args& command, CommandReturnObject &result) &matches); if (found_cmd == NULL) all_okay = false; - else if (matches.GetSize() != 1) + else if (matches.GetSize() > 1) all_okay = false; else sub_cmd_obj = found_cmd; |