Merge "Fix processing of asterisk.conf debug=yes." into 11

This commit is contained in:
Joshua Colp
2015-05-12 11:57:01 -05:00
committed by Gerrit Code Review

View File

@@ -3350,7 +3350,7 @@ static void ast_readconfig(void)
} else if (!strcasecmp(v->name, "debug")) { } else if (!strcasecmp(v->name, "debug")) {
option_debug = 0; option_debug = 0;
if (sscanf(v->value, "%30d", &option_debug) != 1) { if (sscanf(v->value, "%30d", &option_debug) != 1) {
option_debug = ast_true(v->value); option_debug = ast_true(v->value) ? 1 : 0;
} }
#if HAVE_WORKING_FORK #if HAVE_WORKING_FORK
/* Disable forking (-f at startup) */ /* Disable forking (-f at startup) */