From d0aef28b0e61d2fa25917e8e748d925e17804810 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 27 Apr 2006 19:11:47 +0000 Subject: [PATCH] Queue(somequeue,,,,) -> interpreted as Queue(somequeue,,,,0) (issue #7044 reported nathan fixed by jsmith - sort of) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@22954 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 2c36f08f7c..6889c66422 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2899,7 +2899,7 @@ static int queue_exec(struct ast_channel *chan, void *data) queuetimeoutstr = info_ptr; /* set the expire time based on the supplied timeout; */ - if (queuetimeoutstr) + if (!ast_strlen_zero(queuetimeoutstr)) qe.expire = qe.start + atoi(queuetimeoutstr); else qe.expire = 0;