]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_tone_stream
authorAndrey Volk <andywolk@gmail.com>
Fri, 12 Jul 2019 16:12:32 +0000 (20:12 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 15 Jul 2019 19:40:58 +0000 (23:40 +0400)
src/mod/formats/mod_tone_stream/mod_tone_stream.c

index 3e8a2a87bec6001eec8722c16f71bdcf5e9b9a85..f1baecb5e9669923b0c2636ea785981c0d186331 100644 (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);
                }