]> pilppa.com Git - uci.git/commitdiff
preserve section list order
authorFelix Fietkau <nbd@openwrt.org>
Tue, 1 Sep 2009 03:03:05 +0000 (05:03 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Sep 2009 03:03:05 +0000 (05:03 +0200)
ucimap.c

index 7f2cf38bd3fed7a8e3a7dc6a888c2af9acd5cb7f..da73ba987b29b2138b59891b46c793c38d1d6ce7 100644 (file)
--- a/ucimap.c
+++ b/ucimap.c
@@ -452,7 +452,7 @@ ucimap_parse_section(struct uci_map *map, struct uci_sectionmap *sm, struct ucim
        if (err)
                goto error;
 
-       list_add(&sd->list, &map->sdata);
+       list_add_tail(&sd->list, &map->sdata);
        err = ucimap_parse_options(map, sm, sd, s);
        if (err)
                goto error;