From 97253e62e9a6a179346784d6dab628d564e92fe1 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 1 Dec 2010 00:42:17 +0000 Subject: 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 --- lldb/source/Commands/CommandObjectHelp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectHelp.cpp') 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; -- cgit v1.2.3