[master] d33f4a860 flexelinting take 2

Nils Goroll nils.goroll at uplex.de
Thu Apr 9 14:39:08 UTC 2020


commit d33f4a86098ac93c141c97ebf4f710cab417052f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Apr 9 16:37:30 2020 +0200

    flexelinting take 2

diff --git a/lib/libvarnishapi/vsl_arg.c b/lib/libvarnishapi/vsl_arg.c
index 87fbace64..eb7985c9f 100644
--- a/lib/libvarnishapi/vsl_arg.c
+++ b/lib/libvarnishapi/vsl_arg.c
@@ -130,7 +130,7 @@ VSL_Glob2Tags(const char *glob, int l, VSL_tagfind_f *func, void *priv)
 		if (p == NULL)
 			continue;
 		e = strchr(p, '\0');
-		if (e - p - l1 < l2)
+		if ((e - p) - l1 < l2)
 			continue;
 		if (p1 != NULL && strncasecmp(p, p1, l1))
 			continue;


More information about the varnish-commit mailing list