extend uci_set so that it can store the resulting element in a variable
[project/uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 9bdd5532b808dbecde909ee1e2b216783797626c..95bc34ebb2ac717c76def5c60ff44f0e0dca467e 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -292,7 +292,7 @@ static int uci_do_section_cmd(int cmd, int argc, char **argv)
                ret = uci_revert(ctx, &p, section, option);
                break;
        case CMD_SET:
-               ret = uci_set(ctx, p, section, option, value);
+               ret = uci_set(ctx, p, section, option, value, NULL);
                break;
        case CMD_DEL:
                ret = uci_delete(ctx, p, section, option);