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

handle allocation error. Found by Klockwork (www.klocwork.com)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8472 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ede7970f
......@@ -270,6 +270,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
status = SWITCH_STATUS_FALSE;
cmd = switch_core_session_strdup(session, odata);
if (!cmd) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Allocation error calling execute\n");
break;
}
cmd_args = switch_separate_paren_args(cmd);
if (!cmd_args ) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论