projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aa3b54
)
ucimap: fix list initialization
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Sep 2009 17:07:21 +0000
(19:07 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Sep 2009 17:07:21 +0000
(19:07 +0200)
ucimap.c
patch
|
blob
|
history
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);
}