From b7f3b780314f33fc5371234126669779e7f6429b Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Wed, 2 Jan 2008 23:48:43 +0000 Subject: [PATCH] Merged revisions 96102 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96102 | mmichelson | 2008-01-02 17:46:02 -0600 (Wed, 02 Jan 2008) | 4 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@96103 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index b258608c88..472e2118e8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4900,6 +4900,7 @@ static int reload_queues(int reload) 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));