]> err.no Git - varnish/commitdiff
Flexelint nits
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 17:09:53 +0000 (17:09 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 17:09:53 +0000 (17:09 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3003 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index 2de10b4f2ccff21ee18a0e7e4d8be95b6d57a894..c388b5b7958388a5bd898b4d30b51ec2513b5686 100644 (file)
@@ -415,7 +415,7 @@ vcc_file_source(struct vsb *sb, const char *fn, int fd)
        assert(f != NULL);
        i = read(fd, f, st.st_size);
        assert(i == st.st_size);
-       close(fd);
+       AZ(close(fd));
        f[i] = '\0';
        sp = vcc_new_source(f, f + i, fn);
        sp->freeit = f;
@@ -610,13 +610,11 @@ vcc_CompileSource(struct vsb *sb, struct source *sp)
                return (vcc_DestroyTokenList(tl, NULL));
 
        /* Check that all action returns are legal */
-       vcc_CheckAction(tl);
-       if (tl->err)
+       if (vcc_CheckAction(tl) || tl->err)
                return (vcc_DestroyTokenList(tl, NULL));
 
        /* Check that all variable uses are legal */
-       vcc_CheckUses(tl);
-       if (tl->err)
+       if (vcc_CheckUses(tl) || tl->err)
                return (vcc_DestroyTokenList(tl, NULL));
 
        /* Emit method functions */