Commit 22baf004 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

If the C-compiler fails, we don't know if it created the output file or not.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2040 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2a57bafe
......@@ -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);
}
......
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