From: phk Date: Thu, 26 Jun 2008 10:27:44 +0000 (+0000) Subject: Oops: only whine when we do have an unterminated strin X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76aa1e97bb865173f5876a05541ed036f9d8fa1;p=varnish 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 --- 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; }