]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9785: Fix src/switch_ivr_play_say.c:1668:48: error: ‘*’ in boolean context, sugges...
authorTrever L. Adams <trever.adams@gmail.com>
Wed, 28 Jun 2017 12:12:44 +0000 (06:12 -0600)
committerMike Jerris <mike@jerris.com>
Tue, 11 Jul 2017 17:01:42 +0000 (13:01 -0400)
src/switch_ivr_play_say.c

index db5873c04344a36706214c68c4ac5798c033adc8..93fb2ff525eaf9ab13e6de21ec729ffe4f5103f9 100644 (file)
@@ -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);