From faa37b90addbc0271ce50f0e38ee7da7a1efd7b8 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 25 Sep 2007 11:05:25 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/mgt_vcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5