From 7aaa6975fcbdf33ba9a2461ba5b535653afa430b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Mar 2015 13:30:37 +0100 Subject: [PATCH] Remove unnecessary SubStr call --- lib/cli/clicommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/clicommand.cpp b/lib/cli/clicommand.cpp index df4e8807d..0694c8964 100644 --- a/lib/cli/clicommand.cpp +++ b/lib/cli/clicommand.cpp @@ -328,7 +328,7 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi pword = ""; } else if (aword.GetLength() > 1 && aword[0] == '-' && aword[1] != '-') { aname = aword.SubStr(0, 2); - prefix = aword.SubStr(0, 2); + prefix = aname; pword = aword.SubStr(2); } else { goto complete_option;