提交 4b1979a1 authored 作者: Seven Du's avatar Seven Du 提交者: Michael Jerris

FS-7513: fix compiler warning about uninitialized var and make sure allocated…

FS-7513: fix compiler warning about uninitialized var and make sure allocated memory is filled with 0
上级 a6dbc2c6
......@@ -789,10 +789,11 @@ static void conference_parse_layouts(conference_obj_t *conference)
}
lg = switch_core_alloc(conference->pool, sizeof(*lg));
memset(lg, 0, sizeof(*lg));
while(x_layout) {
const char *name = x_layout->txt;
layout_node_t *lnode, *last_lnode;
layout_node_t *lnode, *last_lnode = NULL;
if ((lnode = switch_core_hash_find(conference->layout_hash, name))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论