]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
We need to reset the membername to NULL on each iteration of this loop, otherwise...
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Jan 2008 23:46:02 +0000 (23:46 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 2 Jan 2008 23:46:02 +0000 (23:46 +0000)
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/branches/1.4@96102 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 89eba9537524d008a1c3c8cf8868375c2d663a16..2be4d03dcfbd77aee78865a19e55a2008b100bac 100644 (file)
@@ -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));