From: phk Date: Thu, 31 Jul 2008 10:03:27 +0000 (+0000) Subject: An assert to convince FlexeLint that we have a variable. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd49e711f4a8a54fb31cba154b5af27b72a1a9a0;p=varnish 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 --- 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);