提交 cad56b3b authored 作者: Andrey Volk's avatar Andrey Volk

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

上级 d432f73b
......@@ -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);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论