From: phk Date: Tue, 25 Sep 2007 11:05:25 +0000 (+0000) Subject: If the C-compiler fails, we don't know if it created the output file or not. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa37b90addbc0271ce50f0e38ee7da7a1efd7b8;p=varnish If the C-compiler fails, we don't know if it created the output file or not. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2040 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_vcc.c b/varnish-cache/bin/varnishd/mgt_vcc.c index cc1d50a6..d329c535 100644 --- a/varnish-cache/bin/varnishd/mgt_vcc.c +++ b/varnish-cache/bin/varnishd/mgt_vcc.c @@ -263,7 +263,7 @@ mgt_CallCc(const char *source, struct vsb *sb) /* If the compiler complained, or exited non-zero, fail */ if (i || j) { - AZ(unlink(of)); + (void)unlink(of); /* May or may not have created file */ free(of); return (NULL); }