From 732e29e3c643b35fa27ba9df9db17303ca28018c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 24 Oct 2014 01:14:08 -0700 Subject: [PATCH] Fix argument number errors --- src/debugger/cli-debugger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/debugger/cli-debugger.c b/src/debugger/cli-debugger.c index 80b884890..316e4acce 100644 --- a/src/debugger/cli-debugger.c +++ b/src/debugger/cli-debugger.c @@ -518,11 +518,10 @@ static bool _parse(struct CLIDebugger* debugger, const char* line, size_t count) _DVFree(dv); return false; } - } else { - printf("Wrong number of arguments"); } } else if (firstSpace) { - printf("Wrong number of arguments"); + printf("Wrong number of arguments\n"); + return false; } _debuggerCommands[i].command(debugger, dv); _DVFree(dv);