From: Joshua Colp Date: Wed, 21 Jun 2006 18:39:56 +0000 (+0000) Subject: Actually allow realtime queue members to be added (issue #7408 reported by tgrman) X-Git-Tag: 1.4.0-beta1~825 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0224dee87676f3510e04de940760758ee2814352;p=thirdparty%2Fasterisk.git Actually allow realtime queue members to be added (issue #7408 reported by tgrman) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35311 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 5b9d3dd4f5..ad0c2e4146 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -964,7 +964,7 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as struct ast_variable *v; struct call_queue *q; struct member *m, *prev_m, *next_m; - char *interface; + char *interface = NULL; char *tmp, *tmp_name; char tmpbuf[64]; /* Must be longer than the longest queue param name. */ @@ -1046,8 +1046,7 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as m->dead = 1; } - interface = NULL; - while (ast_category_browse(member_config, interface)) + while ((interface = ast_category_browse(member_config, interface))) rt_handle_member_record(q, interface, ast_variable_retrieve(member_config, interface, "penalty")); /* Delete all realtime members that have been deleted in DB. */