From: phk Date: Wed, 23 Jul 2008 17:09:53 +0000 (+0000) Subject: Flexelint nits X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1184b0ffe41c300abde20726ccd0f2a7afe14e68;p=varnish Flexelint nits git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3003 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 2de10b4f..c388b5b7 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -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 */