summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-08-25 17:49:04 +0000
committerRussell Bryant <russell@russellbryant.com>2007-08-25 17:49:04 +0000
commite5b801c419c860d2f3bfe98426b85bc218c47fed (patch)
treea7a6d47053d279b21c54736b50a5bf313033a574
parent700b5d84422382dfcf0ce2a5972b88f7c2bb8d94 (diff)
use ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 2bf67bde1..3c4bae1b9 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -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;
}