extend uci_set so that it can store the resulting element in a variable
[project/uci.git] / file.c
diff --git a/file.c b/file.c
index 4f1392e..401d4a8 100644 (file)
--- a/file.c
+++ b/file.c
@@ -191,7 +191,7 @@ static void uci_parse_config(struct uci_context *ctx, char **str)
 
        if (pctx->merge) {
                UCI_TRAP_SAVE(ctx, error);
-               uci_set(ctx, pctx->package, name, NULL, type);
+               uci_set(ctx, pctx->package, name, NULL, type, NULL);
                UCI_TRAP_RESTORE(ctx);
                return;
 error:
@@ -221,7 +221,7 @@ static void uci_parse_option(struct uci_context *ctx, char **str)
 
        if (pctx->merge) {
                UCI_TRAP_SAVE(ctx, error);
-               uci_set(ctx, pctx->package, pctx->section->e.name, name, value);
+               uci_set(ctx, pctx->package, pctx->section->e.name, name, value, NULL);
                UCI_TRAP_RESTORE(ctx);
                return;
 error: