aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 23:46:02 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 23:46:02 +0000
commit1bd8291680e2a7336df5904f6454d63c9c6cfc7c (patch)
tree678e92c6f1d6b4179354659e6fb70a2f5040e1f4 /apps/app_queue.c
parent3e1af6aa86b0eaf38753d8a205f7b25eae47a007 (diff)
We need to reset the membername to NULL on each iteration of this loop, otherwise the result is that
multiple members can have the same name, since the variable was not reset on each iteration of the loop. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96102 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 89eba9537..2be4d03dc 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4087,6 +4087,7 @@ static int reload_queues(void)
for (var = ast_variable_browse(cfg, cat); var; var = var->next) {
if (!strcasecmp(var->name, "member")) {
struct member tmpmem;
+ membername = NULL;
/* Add a new member */
ast_copy_string(parse, var->value, sizeof(parse));