提交 d62f106b authored 作者: Brian West's avatar Brian West

check return value of unlink MODAPP-142

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9538 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 89fd3732
......@@ -1253,7 +1253,9 @@ static char *vm_merge_file(switch_core_session_t *session, vm_profile_t *profile
}
unlink(announce);
if (unlink(announce) != 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", announce);
}
ret = tmp_path;
end:
......@@ -1496,7 +1498,9 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
end:
if (forward_file_path) {
unlink(forward_file_path);
if (unlink(forward_file_path) != 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", forward_file_path);
}
}
return status;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论