[asterisk-commits] mmichelson: trunk r101576 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 31 15:31:16 CST 2008


Author: mmichelson
Date: Thu Jan 31 15:31:15 2008
New Revision: 101576

URL: http://svn.digium.com/view/asterisk?view=rev&rev=101576
Log:
Handle the case of a NULL state_interface when checking a realtime member.

Thanks to jmls for finding this issue.


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=101576&r1=101575&r2=101576
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Jan 31 15:31:15 2008
@@ -1316,7 +1316,7 @@
 		m->dead = 0;	/* Do not delete this one. */
 		if (paused_str)
 			m->paused = paused;
-		if (strcasecmp(state_interface, m->state_interface)) {
+		if (strcasecmp(ast_strlen_zero(state_interface) ? interface : state_interface, m->state_interface)) {
 			remove_from_interfaces(m->state_interface);
 			ast_copy_string(m->state_interface, state_interface, sizeof(m->state_interface));
 			add_to_interfaces(m->state_interface);




More information about the asterisk-commits mailing list