]> err.no Git - varnish/commitdiff
If the C-compiler fails, we don't know if it created the output file or not.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 11:05:25 +0000 (11:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 11:05:25 +0000 (11:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2040 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_vcc.c

index cc1d50a61732288b879be6240c8cf5952b58ea30..d329c53598d1265d0651f5ba0036b61a22f7d393 100644 (file)
@@ -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);
        }