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