]> pilppa.org Git - uci.git/blobdiff - ucimap.c
fix possible uninitialized warning from gcc 4.92
[uci.git] / ucimap.c
index 9853e7e89fb337207cd122d486da68ce1c912722..0ffab944d3d354c3d7c561973e3674a76bd054e2 100644 (file)
--- a/ucimap.c
+++ b/ucimap.c
@@ -219,7 +219,7 @@ ucimap_handle_fixup(struct uci_map *map, struct ucimap_fixup *f)
                break;
        case UCIMAP_LIST:
                list = f->data->list;
-               data = ucimap_list_append(f->data->list);
+               data = ucimap_list_append(list);
                if (!data)
                        return false;
 
@@ -884,6 +884,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;