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: https://origsvn.digium.com/svn/asterisk/trunk@67557
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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;
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")) {