From aa320d23a9eee547c949762ac9490e6f4e762100 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Mon, 14 Jan 2008 16:21:28 +0000 Subject: [PATCH] Adding explicit defaults for missing options to init_queue. This is necessary because if a user either removes or comments one of these options and reloads their queues, the option will not reset to its default, instead maintaining the value from prior to the reload. Thanks to John Bigelow for pointing this error out to me. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98733 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index 1afdd8c7c1..24b8f2ebdd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -795,6 +795,17 @@ static void init_queue(struct call_queue *q) q->context[0] = '\0'; q->monfmt[0] = '\0'; q->periodicannouncefrequency = 0; + q->reportholdtime = 0; + q->monitorjoin = 0; + q->wrapuptime = 0; + q->autofill = 0; + q->joinempty = 0; + q->leavewhenempty = 0; + q->memberdelay = 0; + q->eventmemberstatus = 0; + q->eventwhencalled = 0; + q->weight = 0; + q->timeoutrestart = 0; if (!q->members) q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); q->membercount = 0;