mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-11 06:59:53 +00:00
FS-9785: Fix src/switch_ivr_play_say.c:1668:48: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context]
This commit is contained in:
parent
052c7c3061
commit
c57c740c68
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user