[master] 17c148c12 flexelint
Nils Goroll
nils.goroll at uplex.de
Thu Dec 10 18:43:06 UTC 2020
commit 17c148c124a5bbdb50913274a23a461756c6853d
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Dec 10 19:40:21 2020 +0100
flexelint
... thinks this statement is confusing.
Ref: 15f94d33c9ad7955bde94386e953d19bbf6fb4de
diff --git a/lib/libvarnish/vsb.c b/lib/libvarnish/vsb.c
index 0eb63ec8d..6238d8349 100644
--- a/lib/libvarnish/vsb.c
+++ b/lib/libvarnish/vsb.c
@@ -350,7 +350,7 @@ VSB_cat(struct vsb *s, const char *str)
return (-1);
while (s->s_indent > 0 && (nl = strchr(str, '\n')) != NULL) {
- l = nl - str + 1;
+ l = (nl - str) + 1;
if (VSB_bcat(s, str, l) < 0)
return (-1);
str += l;
More information about the varnish-commit
mailing list