提交 6663692f authored 作者: Travis Cross's avatar Travis Cross

Assert on implied failure to malloc

switch_event_expand_headers should only return null on a malloc
failure, so we might as well just assert here.
上级 e66d2462
......@@ -1476,6 +1476,7 @@ static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thr
int use_ent = 0;
char *expanded_originate_string = switch_event_expand_headers(ovars, h->originate_string);
switch_assert(expanded_originate_string);
if (strstr(expanded_originate_string, "user/")) {
switch_event_create_brackets(expanded_originate_string, '<', '>', ',', &ovars, &parsed, SWITCH_TRUE);
use_ent = 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论