summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2009-12-04 18:55:21 +0000
committerDavid Vossel <dvossel@digium.com>2009-12-04 18:55:21 +0000
commit63dafe98f6d1dbf9703ad6a000412fbf32a761c5 (patch)
tree687b8a944687f0b304be9c42e911e95edef0680e /apps
parente21deabf02e2d3e4bfe2c29fbc131684e70cb834 (diff)
changes penaltymemberslimit to use scanf for config value parsing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 7316a9b70..2e79909ca 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1755,7 +1755,9 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
} 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")) {