FS-7513: fix compiler warning about uninitialized var and make sure allocated memory is filled with 0
This commit is contained in:
parent
a6dbc2c6f8
commit
4b1979a119
|
@ -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))) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue