aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-05 22:59:36 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-05 22:59:36 +0000
commitfee4ee2c57e26420cdaf30522930a5f2538d559b (patch)
treeecb84f77590897771c3060fe65a4fe8fa9f08d37 /main/cli.c
parent1de82b08fcc7c458314f6c8c2a05fd97ceac01a7 (diff)
Found a bug where when "core set debug #" is used, the verbosity is read as the
old value instead of the old debug value, leading to an erroneous status message after setting. This was purely a cosmetic issue and had no other underlying problems. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67557 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 1f0d063f7..91ab41f59 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -186,7 +186,7 @@ static char *handle_reload_deprecated(struct ast_cli_entry *e, int cmd, struct a
static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- int oldval = option_verbose;
+ int oldval;
int newlevel;
int atleast = 0;
int fd = a->fd;
@@ -217,9 +217,11 @@ static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
return CLI_SHOWUSAGE;
if (!strcasecmp(argv[e->args - 2], "debug")) {
dst = &option_debug;
+ oldval = option_debug;
what = "Core debug";
} else {
dst = &option_verbose;
+ oldval = option_verbose;
what = "Verbosity";
}
if (argc == e->args && !strcasecmp(argv[e->args - 1], "off")) {