From: Russell Bryant Date: Tue, 21 Dec 2004 20:42:58 +0000 (+0000) Subject: fix typo in ast_say_number_full_en (bug #3101) X-Git-Tag: 1.0.11.1~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1298f6585d817777bba0452cdbeb66c91279b4fe;p=thirdparty%2Fasterisk.git fix typo in ast_say_number_full_en (bug #3101) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4516 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/say.c b/say.c index f2b6acc102..dbed5b2c26 100755 --- a/say.c +++ b/say.c @@ -579,7 +579,7 @@ static int ast_say_number_full_en(struct ast_channel *chan, int num, char *ints, } if (!res) { if(!ast_streamfile(chan, fn, language)) { - if (audiofd && ctrlfd) + if ((audiofd > -1) && (ctrlfd > -1)) res = ast_waitstream_full(chan, ints, audiofd, ctrlfd); else res = ast_waitstream(chan, ints);