From b12bd89466dfb7adf38b71c039a0d56704492e95 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 3 Feb 2008 01:19:26 +0100 Subject: [PATCH] disable EOL check for non-strict mode --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index 6cc2eae..a3d08d2 100644 --- 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); - if (tmp && *tmp) + if (tmp && *tmp && (ctx->flags & UCI_FLAG_STRICT)) uci_parse_error(ctx, *str, "too many arguments"); } -- 2.41.1