[master] a3756e2 Don't forget final NL
Poul-Henning Kamp
phk at FreeBSD.org
Thu Feb 2 10:01:05 CET 2017
commit a3756e2ed9fbf0796c693dc13563de9b2ac4a258
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Feb 2 08:53:59 2017 +0000
Don't forget final NL
diff --git a/lib/libvarnish/vsb.c b/lib/libvarnish/vsb.c
index cc9e4d0..2f32acb 100644
--- a/lib/libvarnish/vsb.c
+++ b/lib/libvarnish/vsb.c
@@ -598,7 +598,7 @@ VSB_quote_pfx(struct vsb *s, const char *pfx, const void *v, int len, int how)
}
if (how & VSB_QUOTE_CSTR)
(void)VSB_putc(s, '"');
- if ((how & VSB_QUOTE_NONL) && !nl)
+ if ((how & (VSB_QUOTE_NONL|VSB_QUOTE_UNSAFE)) && !nl)
(void)VSB_putc(s, '\n');
}
More information about the varnish-commit
mailing list