[master] 7ee64e2a5 flexelinting
Nils Goroll
nils.goroll at uplex.de
Tue Nov 25 12:29:05 UTC 2025
commit 7ee64e2a51be0805b2a2ea4ff8a025fb6db5f149
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Nov 25 13:25:42 2025 +0100
flexelinting
match = strchr(key, ':');
Error 158: Assignment to variable 'match' (line 604) increases capability
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 488dee711..68c96f947 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -597,7 +597,7 @@ addf_vcl_log(const char *key)
}
static void
-addf_hdr(struct watch_head *head, const char *key)
+addf_hdr(struct watch_head *head, char *key)
{
struct watch *w;
struct format *f;
More information about the varnish-commit
mailing list