do not hardcode config package in config_init_package()
authorFelix Fietkau <nbd@openwrt.org>
Tue, 8 Nov 2011 21:58:45 +0000 (22:58 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 8 Nov 2011 21:58:45 +0000 (22:58 +0100)
config.c

index 5a2e439b9294381a38ad6a7f6579ba26eb7bb433..fcfea7c42c01000a7b83a5e836f949d0f5e7e2c1 100644 (file)
--- a/config.c
+++ b/config.c
@@ -337,7 +337,7 @@ config_init_package(const char *config)
                        uci_unload(ctx, p);
        }
 
-       if (uci_load(ctx, "network", &p))
+       if (uci_load(ctx, config, &p))
                return NULL;
 
        return p;