diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-04 22:00:10 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-04 22:00:10 +0000 |
commit | e98502ccc52d21f3e05df3d9d3b28721a386e1f3 (patch) | |
tree | d5b4c3d66531d0849c02f4d5b4fc264f845d6c41 /apps/app_queue.c | |
parent | 8a640eaf392f943e98b43be81635392408c157c6 (diff) |
Merged revisions 84692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84692 | mmichelson | 2007-10-04 16:57:03 -0500 (Thu, 04 Oct 2007) | 5 lines
Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good.
closes issue (#10879, reported by dazza76, patched by me)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84693 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b2078c67c..26f503b00 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -815,7 +815,8 @@ static void init_queue(struct call_queue *q) q->monfmt[0] = '\0'; q->periodicannouncefrequency = 0; q->sound_callerannounce[0] = '\0'; /* Default, don't announce the caller that he has been answered */ - q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); + if(!q->members) + q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); q->membercount = 0; q->found = 1; ast_copy_string(q->sound_next, "queue-youarenext", sizeof(q->sound_next)); |