diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-20 19:01:00 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-20 19:01:00 +0000 |
commit | 450a09f826b836ef074dc7c6767e2590e40a2c8d (patch) | |
tree | 7a5c1035cc8446fc9d647672174eb63f19734362 /apps/app_queue.c | |
parent | 8e3cb4e6c3bf910a3789b5ef7d0593c3a889d172 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@8355 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index f34e6a0b2..37611e671 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -763,20 +763,17 @@ static void rt_handle_member_record(struct ast_call_queue *q, char *interface, c static struct ast_call_queue *reload_queue_rt(const char *queuename, struct ast_variable *queue_vars, struct ast_config *member_config) { struct ast_variable *v; - struct ast_call_queue *q, *prev_q; + struct ast_call_queue *q, *prev_q = NULL; struct member *m, *prev_m, *next_m; char *interface; char *tmp, *tmp_name; char tmpbuf[64]; /* Must be longer than the longest queue param name. */ /* Find the queue in the in-core list (we will create a new one if not found). */ - q = queues; - prev_q = NULL; - while (q) { + for (q = queues; q; q = q->next) { if (!strcasecmp(q->name, queuename)) { break; } - q = q->next; prev_q = q; } |