aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 23:48:43 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 23:48:43 +0000
commitba67b872f3bdf3c36849b0900a1e7cf8ab2c4bbe (patch)
tree91669dabd12a4b26afeb21ae9f44eb538cef8f61
parent245fbece26ad9bbdcacc23900e2df85fbb0931d3 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@96103 f38db490-d61c-443f-a65b-d21fe96a405b
-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 b258608c8..472e2118e 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));