]> err.no Git - varnish/commitdiff
Oops: only whine when we do have an unterminated strin
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:27:44 +0000 (10:27 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:27:44 +0000 (10:27 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2820 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc.c

index 67d0b520d06dfadedaaaad7daf271268f7dc5cf5..c0c897224c70701342baf77ae90b3bb4653410ea 100644 (file)
@@ -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;
                                        }