]> 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)
committerTrever L. Adams <trever.adams@gmail.com>
Fri, 30 Jun 2017 03:35:38 +0000 (21:35 -0600)
src/switch_ivr_play_say.c

index d4f0d46c80b41149d960f2cee58f1e88e2c5f4e7..6a9298d2d4c2fce12314bd8282edae44bf377ae2 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);