[asterisk-commits] mmichelson: branch 1.4 r96102 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 2 17:46:03 CST 2008


Author: mmichelson
Date: Wed Jan  2 17:46:02 2008
New Revision: 96102

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96102
Log:
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.


Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=96102&r1=96101&r2=96102
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Wed Jan  2 17:46:02 2008
@@ -4087,6 +4087,7 @@
 				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));




More information about the asterisk-commits mailing list