From: Felix Fietkau Date: Sun, 3 Feb 2008 00:19:26 +0000 (+0100) Subject: disable EOL check for non-strict mode X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b12bd89466dfb7adf38b71c039a0d56704492e95;p=uci.git disable EOL check for non-strict mode --- 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"); }