r2040 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Sep 25 13:05:26 CEST 2007
Author: phk
Date: 2007-09-25 13:05:25 +0200 (Tue, 25 Sep 2007)
New Revision: 2040
Modified:
trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
If the C-compiler fails, we don't know if it created the output file or not.
Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2007-09-25 10:36:59 UTC (rev 2039)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2007-09-25 11:05:25 UTC (rev 2040)
@@ -263,7 +263,7 @@
/* 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);
}
More information about the varnish-commit
mailing list