提交 6e4a679e authored 作者: Anthony Minessale's avatar Anthony Minessale

fix possible printf of NULL

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9034 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b47382df
...@@ -1632,7 +1632,7 @@ static void sch_api_callback(switch_scheduler_task_t *task) ...@@ -1632,7 +1632,7 @@ static void sch_api_callback(switch_scheduler_task_t *task)
SWITCH_STANDARD_STREAM(stream); SWITCH_STANDARD_STREAM(stream);
switch_api_execute(cmd, arg, NULL, &stream); switch_api_execute(cmd, arg, NULL, &stream);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Command %s(%s):\n%s\n", cmd, arg, switch_str_nil((char *) stream.data)); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Command %s(%s):\n%s\n", cmd, switch_str_nil(arg), switch_str_nil((char *) stream.data));
switch_safe_free(stream.data); switch_safe_free(stream.data);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论