X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=ucimap.c;h=c7adacd574db14f2919fa71967df262e4ff80af8;hb=7791a9603c3932e6f90d4ac711f7fa2eeb1044bd;hp=b477264b23dca1b905784bddb8fd6d32de2d9ad0;hpb=8aa3b5497c0ad63e8766b02404983b7993dbfd10;p=uci.git 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); }