FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_tone_stream

This commit is contained in:
Andrey Volk 2019-07-12 20:12:32 +04:00
parent d432f73b75
commit cad56b3b4b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}