mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
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
This commit is contained in:
@@ -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")) {
|
||||
|
Reference in New Issue
Block a user