From c76aa1e97bb865173f5876a05541ed036f9d8fa1 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 10:27:44 +0000 Subject: [PATCH] Oops: only whine when we do have an unterminated strin git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2820 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishtest/vtc.c b/varnish-cache/bin/varnishtest/vtc.c index 67d0b520..c0c89722 100644 --- a/varnish-cache/bin/varnishtest/vtc.c +++ b/varnish-cache/bin/varnishtest/vtc.c @@ -133,7 +133,8 @@ parse_string(char *buf, const struct cmds *cmd, void *priv) *q++ = '"'; p++; } else { - fprintf(stderr, "Unterminated quoted string\n"); + if (*p == '\n') + fprintf(stderr, "Unterminated quoted string\n"); assert(*p != '\n'); *q++ = *p; } -- 2.39.5