r3040 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Thu Jul 31 12:03:27 CEST 2008


Author: phk
Date: 2008-07-31 12:03:27 +0200 (Thu, 31 Jul 2008)
New Revision: 3040

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_action.c
Log:
An assert to convince FlexeLint that we have a variable.



Modified: trunk/varnish-cache/lib/libvcl/vcc_action.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-07-31 10:01:36 UTC (rev 3039)
+++ trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-07-31 10:03:27 UTC (rev 3040)
@@ -100,6 +100,7 @@
 	if (tl->t->tok == VAR) {
 		vp = vcc_FindVar(tl, tl->t, vcc_vars);
 		ERRCHK(tl);
+		assert(vp != NULL);
 		if (vp->fmt == INT) {
 			Fb(tl, 1, "VRT_error(sp, %s", vp->rname);
 			vcc_NextToken(tl);




More information about the varnish-commit mailing list