projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21deab
)
changes penaltymemberslimit to use scanf for config value parsing
author
David Vossel
<dvossel@digium.com>
Fri, 4 Dec 2009 18:55:21 +0000
(18:55 +0000)
committer
David Vossel
<dvossel@digium.com>
Fri, 4 Dec 2009 18:55:21 +0000
(18:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233197
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_queue.c
patch
|
blob
|
history
diff --git
a/apps/app_queue.c
b/apps/app_queue.c
index
7316a9b
..
2e79909
100644
(file)
--- 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")) {