use ast_strlen_zero
authorRussell Bryant <russell@russellbryant.com>
Sat, 25 Aug 2007 17:49:04 +0000 (17:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 25 Aug 2007 17:49:04 +0000 (17:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80896 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 2bf67bd..3c4bae1 100644 (file)
@@ -1939,7 +1939,7 @@ static int say_periodic_announcement(struct queue_ent *qe, int ringing)
        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;
        }