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

Flexelint nits



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3003 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 15877042
...@@ -415,7 +415,7 @@ vcc_file_source(struct vsb *sb, const char *fn, int fd) ...@@ -415,7 +415,7 @@ vcc_file_source(struct vsb *sb, const char *fn, int fd)
assert(f != NULL); assert(f != NULL);
i = read(fd, f, st.st_size); i = read(fd, f, st.st_size);
assert(i == st.st_size); assert(i == st.st_size);
close(fd); AZ(close(fd));
f[i] = '\0'; f[i] = '\0';
sp = vcc_new_source(f, f + i, fn); sp = vcc_new_source(f, f + i, fn);
sp->freeit = f; sp->freeit = f;
...@@ -610,13 +610,11 @@ vcc_CompileSource(struct vsb *sb, struct source *sp) ...@@ -610,13 +610,11 @@ vcc_CompileSource(struct vsb *sb, struct source *sp)
return (vcc_DestroyTokenList(tl, NULL)); return (vcc_DestroyTokenList(tl, NULL));
/* Check that all action returns are legal */ /* Check that all action returns are legal */
vcc_CheckAction(tl); if (vcc_CheckAction(tl) || tl->err)
if (tl->err)
return (vcc_DestroyTokenList(tl, NULL)); return (vcc_DestroyTokenList(tl, NULL));
/* Check that all variable uses are legal */ /* Check that all variable uses are legal */
vcc_CheckUses(tl); if (vcc_CheckUses(tl) || tl->err)
if (tl->err)
return (vcc_DestroyTokenList(tl, NULL)); return (vcc_DestroyTokenList(tl, NULL));
/* Emit method functions */ /* 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