[asterisk-commits] dvossel: trunk r233197 - /trunk/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 4 12:55:25 CST 2009
Author: dvossel
Date: Fri Dec 4 12:55:21 2009
New Revision: 233197
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=233197
Log:
changes penaltymemberslimit to use scanf for config value parsing
Modified:
trunk/apps/app_queue.c
Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=233197&r1=233196&r2=233197
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Dec 4 12:55:21 2009
@@ -1755,7 +1755,9 @@
} else if (!strcasecmp(param, "wrapuptime")) {
q->wrapuptime = atoi(val);
} else if (!strcasecmp(param, "penaltymemberslimit")) {
- q->penaltymemberslimit = atoi(val);
+ if ((sscanf(val, "%10d", &q->penaltymemberslimit) != 1)) {
+ q->penaltymemberslimit = 0;
+ }
} else if (!strcasecmp(param, "autofill")) {
q->autofill = ast_true(val);
} else if (!strcasecmp(param, "monitor-type")) {
More information about the asterisk-commits
mailing list