提交 f4e5aa39 authored 作者: Michael Jerris's avatar Michael Jerris

Avoid fflush-ing NULL. Found by Klockwork (www.klocwork.com)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8424 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8f436a9d
......@@ -311,7 +311,9 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel_t channel, const char
switch_safe_free(data);
switch_safe_free(new_fmt);
fflush(handle);
if (handle) {
fflush(handle);
}
}
SWITCH_DECLARE(switch_status_t) switch_log_init(switch_memory_pool_t *pool)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论