projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ucimap: fix list initialization
[project/uci.git]
/
ucimap.c
diff --git
a/ucimap.c
b/ucimap.c
index
b477264
..
c7adacd
100644
(file)
--- 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);
}