mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_tone_stream
This commit is contained in:
@@ -142,7 +142,7 @@ static switch_status_t tone_stream_file_open(switch_file_handle_t *handle, const
|
||||
if ((tmp = (char *)switch_stristr(";loops=", tonespec))) {
|
||||
*tmp = '\0';
|
||||
tmp += 7;
|
||||
if (tmp) {
|
||||
if (*tmp) {
|
||||
loops = atoi(tmp);
|
||||
switch_buffer_set_loops(audio_buffer, loops);
|
||||
}
|
||||
|
Reference in New Issue
Block a user