disable EOL check for non-strict mode
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Feb 2008 00:19:26 +0000 (01:19 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Feb 2008 00:19:26 +0000 (01:19 +0100)
file.c

diff --git a/file.c b/file.c
index 6cc2eae..a3d08d2 100644 (file)
--- a/file.c
+++ b/file.c
@@ -268,7 +268,7 @@ static void assert_eol(struct uci_context *ctx, char **str)
        char *tmp;
 
        tmp = next_arg(ctx, str, false, false);
        char *tmp;
 
        tmp = next_arg(ctx, str, false, false);
-       if (tmp && *tmp)
+       if (tmp && *tmp && (ctx->flags & UCI_FLAG_STRICT))
                uci_parse_error(ctx, *str, "too many arguments");
 }
 
                uci_parse_error(ctx, *str, "too many arguments");
 }