From: Felix Fietkau Date: Mon, 4 Feb 2008 21:02:34 +0000 (+0100) Subject: make the value of an option optional (found by lubek) X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=ad92cae5b9be81c30f25ebc1cd6292b7a40889a9;hp=a15a9c2c7104c3ea1dbc91c1c6931f3140a6b0a2 make the value of an option optional (found by lubek) --- diff --git a/file.c b/file.c index 169cf6e..8595972 100644 --- 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) {