From: Trever L. Adams Date: Wed, 28 Jun 2017 12:12:44 +0000 (-0600) Subject: FS-9785: Fix src/switch_ivr_play_say.c:1668:48: error: ‘*’ in boolean context, sugges... X-Git-Tag: v1.6.19~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b11bdd0016beb94971de40b5865127e4533b8b8d;p=thirdparty%2Ffreeswitch.git FS-9785: Fix src/switch_ivr_play_say.c:1668:48: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context] --- 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);