make the value of an option optional (found by lubek)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Feb 2008 21:02:34 +0000 (22:02 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Feb 2008 21:02:34 +0000 (22:02 +0100)
file.c

diff --git a/file.c b/file.c
index 169cf6ee7190bffbff69ee24a454238bf6fb9ae3..85959729fe1e2370213b967854a180363901e4f6 100644 (file)
--- a/file.c
+++ b/file.c
@@ -373,7 +373,7 @@ static void uci_parse_option(struct uci_context *ctx, char **str)
        *str += strlen(*str) + 1;
 
        name = next_arg(ctx, str, true, true);
-       value = next_arg(ctx, str, true, false);
+       value = next_arg(ctx, str, false, false);
        assert_eol(ctx, str);
 
        if (pctx->merge) {