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 169cf6e..8595972 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) {