[Asterisk-code-review] Fix processing of asterisk.conf debug=yes. (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Tue May 12 11:58:05 CDT 2015
Joshua Colp has submitted this change and it was merged.
Change subject: Fix processing of asterisk.conf debug=yes.
......................................................................
Fix processing of asterisk.conf debug=yes.
The code which reads asterisk.conf supports processing the debug
option with ast_true, but ast_true returns -1. This causes debug
to still be off, convert to 1 so debug will be on as requested.
ASTERISK-25042
Reported by: Corey Farrell
Change-Id: I3c898b7d082d914b057e111b9357fde46bad9ed6
---
M main/asterisk.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
diff --git a/main/asterisk.c b/main/asterisk.c
index 137ee93..a9c6d0f 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3593,7 +3593,7 @@
} else if (!strcasecmp(v->name, "debug")) {
option_debug = 0;
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
/* Disable forking (-f at startup) */
--
To view, visit https://gerrit.asterisk.org/438
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3c898b7d082d914b057e111b9357fde46bad9ed6
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list