From: Mark Michelson Date: Wed, 2 Apr 2008 14:32:00 +0000 (+0000) Subject: Ensure that there is no timeout if none is specified. X-Git-Tag: 1.4.20-rc1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63968e3d5da7c2663c922f0225ee19162207b014;p=thirdparty%2Fasterisk.git Ensure that there is no timeout if none is specified. (closes issue #12349) Reported by: johnlange git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112393 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 53f3c31a00..36ba8e2131 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3718,7 +3718,7 @@ static int queue_exec(struct ast_channel *chan, void *data) qe.start = time(NULL); /* set the expire time based on the supplied timeout; */ - if (args.queuetimeoutstr) + if (!ast_strlen_zero(args.queuetimeoutstr)) qe.expire = qe.start + atoi(args.queuetimeoutstr); else qe.expire = 0;