From cad56b3b4bd0bc0bc1cdda754d0c83ca16f79236 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 12 Jul 2019 20:12:32 +0400 Subject: [PATCH] FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_tone_stream --- src/mod/formats/mod_tone_stream/mod_tone_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/formats/mod_tone_stream/mod_tone_stream.c b/src/mod/formats/mod_tone_stream/mod_tone_stream.c index 3e8a2a87be..f1baecb5e9 100644 --- a/src/mod/formats/mod_tone_stream/mod_tone_stream.c +++ b/src/mod/formats/mod_tone_stream/mod_tone_stream.c @@ -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); }