diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 46f1ab7e31..7afc3f7f85 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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))) {