X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap.c;h=140c684f335ef750b5807f30e51cb2bd9002edf0;hp=9853e7e89fb337207cd122d486da68ce1c912722;hb=4a7d8053ae7866932c796465a4e8cd0bc5ca7fd3;hpb=8bc580cbda5c9dddedb3340208b0b55734ce9750 diff --git a/ucimap.c b/ucimap.c index 9853e7e..140c684 100644 --- a/ucimap.c +++ b/ucimap.c @@ -9,7 +9,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. */ /* @@ -207,7 +207,6 @@ static bool ucimap_handle_fixup(struct uci_map *map, struct ucimap_fixup *f) { void *ptr = ucimap_find_section(map, f); - struct ucimap_list *list; union ucimap_data *data; if (!ptr) @@ -218,7 +217,6 @@ ucimap_handle_fixup(struct uci_map *map, struct ucimap_fixup *f) f->data->ptr = ptr; break; case UCIMAP_LIST: - list = f->data->list; data = ucimap_list_append(f->data->list); if (!data) return false; @@ -884,6 +882,7 @@ ucimap_parse(struct uci_map *map, struct uci_package *pkg) } else { sd = malloc(sm->alloc_len); memset(sd, 0, sm->alloc_len); + sd = ucimap_ptr_section(sm, sd); } if (!sd) continue;