[asterisk-commits] russell: trunk r80896 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Aug 25 12:49:04 CDT 2007


Author: russell
Date: Sat Aug 25 12:49:04 2007
New Revision: 80896

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80896
Log:
use ast_strlen_zero

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=80896&r1=80895&r2=80896
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Sat Aug 25 12:49:04 2007
@@ -1939,7 +1939,7 @@
 	ast_verb(3, "Playing periodic announcement\n");
 
 	/* Check to make sure we have a sound file. If not, reset to the first sound file */
-	if (qe->last_periodic_announce_sound >= MAX_PERIODIC_ANNOUNCEMENTS || !strlen(qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound])) {
+	if (qe->last_periodic_announce_sound >= MAX_PERIODIC_ANNOUNCEMENTS || ast_strlen_zero(qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound])) {
 		qe->last_periodic_announce_sound = 0;
 	}
 	




More information about the asterisk-commits mailing list