From bd49e711f4a8a54fb31cba154b5af27b72a1a9a0 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2008 10:03:27 +0000 Subject: [PATCH] An assert to convince FlexeLint that we have a variable. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3040 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/lib/libvcl/vcc_action.c b/varnish-cache/lib/libvcl/vcc_action.c index e1279e9d..3a79fef4 100644 --- a/varnish-cache/lib/libvcl/vcc_action.c +++ b/varnish-cache/lib/libvcl/vcc_action.c @@ -100,6 +100,7 @@ parse_error(struct tokenlist *tl) 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); -- 2.39.5