From 7791a9603c3932e6f90d4ac711f7fa2eeb1044bd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 6 Sep 2009 19:07:21 +0200 Subject: [PATCH] ucimap: fix list initialization --- ucimap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucimap.c b/ucimap.c index b477264..c7adacd 100644 --- a/ucimap.c +++ b/ucimap.c @@ -650,8 +650,8 @@ ucimap_parse_section(struct uci_map *map, struct uci_sectionmap *sm, struct ucim if (!data->list) goto error_mem; - data->list->size = n_elements; memset(data->list, 0, size); + data->list->size = n_elements; } else { ucimap_count_alloc(om, &n_alloc, &n_alloc_custom); } -- 2.25.1