From b11bdd0016beb94971de40b5865127e4533b8b8d Mon Sep 17 00:00:00 2001 From: "Trever L. Adams" Date: Wed, 28 Jun 2017 06:12:44 -0600 Subject: [PATCH] =?UTF-8?q?FS-9785:=20Fix=20src/switch=5Fivr=5Fplay=5Fsay.?= =?UTF-8?q?c:1668:48:=20error:=20=E2=80=98*=E2=80=99=20in=20boolean=20cont?= =?UTF-8?q?ext,=20suggest=20=E2=80=98&&=E2=80=99=20instead=20[-Werror=3Din?= =?UTF-8?q?t-in-bool-context]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/switch_ivr_play_say.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index db5873c043..93fb2ff525 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1665,7 +1665,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess } } - buflen = FILE_STARTSAMPLES * sizeof(*abuf) * fh->cur_channels ? fh->cur_channels : fh->channels; + buflen = (FILE_STARTSAMPLES * sizeof(*abuf) * fh->cur_channels) > 0 ? fh->cur_channels : fh->channels; if (buflen > write_frame.buflen) { abuf = realloc(abuf, buflen);