]> err.no Git - varnish/commitdiff
An assert to convince FlexeLint that we have a variable.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:03:27 +0000 (10:03 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 31 Jul 2008 10:03:27 +0000 (10:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3040 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index e1279e9db44af5d0deedc62d5a51ce641a318440..3a79fef4ce5b4bf413e1952d73c6271a3931e7c4 100644 (file)
@@ -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);