FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_tone_stream
This commit is contained in:
parent
d432f73b75
commit
cad56b3b4b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue