From c57c740c68c405bb9d2bdec60567736691c425da Mon Sep 17 00:00:00 2001 From: "Trever L. Adams" Date: Wed, 28 Jun 2017 06:12:44 -0600 Subject: [PATCH] =?utf8?q?FS-9785:=20Fix=20src/switch=5Fivr=5Fplay=5Fsay.c?= =?utf8?q?:1668:48:=20error:=20=E2=80=98*=E2=80=99=20in=20boolean=20contex?= =?utf8?q?t,=20suggest=20=E2=80=98&&=E2=80=99=20instead=20[-Werror=3Dint-i?= =?utf8?q?n-bool-context]?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 d4f0d46c80..6a9298d2d4 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); -- 2.47.2