Commit b71e9f5f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Flexelint nits



git-svn-id: http://www.varnish-cache.org/svn/trunk@3003 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 737ea80c
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment