summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cli_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cli_simple.c b/common/cli_simple.c
index 413c2eb..49d5833 100644
--- a/common/cli_simple.c
+++ b/common/cli_simple.c
@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag)
++next;
}
if (rcode == 0 && *line)
- rcode = (cli_simple_run_command(line, 0) >= 0);
+ rcode = (cli_simple_run_command(line, 0) < 0);
return rcode;
}