]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that there is no timeout if none is specified.
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Apr 2008 14:32:00 +0000 (14:32 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 2 Apr 2008 14:32:00 +0000 (14:32 +0000)
(closes issue #12349)
Reported by: johnlange

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 53f3c31a009a9a632e5da81da5a8e52acc3edb52..36ba8e21319581a66f3ecc3d0b0d9fe93ec7c67e 100644 (file)
@@ -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;