From 1184b0ffe41c300abde20726ccd0f2a7afe14e68 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 23 Jul 2008 17:09:53 +0000 Subject: [PATCH] Flexelint nits git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3003 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_compile.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 */ -- 2.39.5