aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-14 23:10:48 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-14 23:10:48 +0000
commit347942d5e55c0f2042da8c3b16999b2548d8ed9d (patch)
tree4eed4bc81bd63bd425fc906444b72b1e52118d69 /main/cli.c
parent40fb91edda0fcb905376c116560861546d80f53e (diff)
Don't crash when typing 'core set verbose' or 'core set debug' by themselves.
(closes issue #14219) Reported by: jamesgolovich Patches: asterisk-setverbosecrash.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168626 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 57f936b09..d04124429 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -415,7 +415,7 @@ static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
* we are guaranteed to be called with argc >= e->args;
*/
- if (argc < e->args)
+ if (argc <= e->args)
return CLI_SHOWUSAGE;
if (!strcasecmp(argv[e->args - 1], "debug")) {
dst = &option_debug;