[master] dfcfbf59c assertion for flexelint

Nils Goroll nils.goroll at uplex.de
Sat Apr 4 15:29:06 UTC 2020


commit dfcfbf59c9cf1b5cd144d8be519cc72ca8766105
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Apr 4 17:15:43 2020 +0200

    assertion for flexelint

diff --git a/lib/libvcc/vcc_xref.c b/lib/libvcc/vcc_xref.c
index eff883274..483805f3d 100644
--- a/lib/libvcc/vcc_xref.c
+++ b/lib/libvcc/vcc_xref.c
@@ -141,7 +141,8 @@ vcc_AddUses(struct vcc *tl, const struct token *t1, const struct token *t2,
 	VTAILQ_INSERT_TAIL(&tl->curproc->uses, pu, list);
 
 	if (pu->mask == 0)
-		vcc_CheckUses(tl);
+		if (vcc_CheckUses(tl))
+			AN(tl->err);
 }
 
 void


More information about the varnish-commit mailing list