Explicitly ignore returned value from unlink() in ngx_open_tempfile().

The only thing we could potentially do here in case of error
returned is to complain to error log, but we don't have log
structure available here due to interface limitations.

Prodded by Coverity.
This commit is contained in:
Andrey Belov 2012-08-06 16:06:59 +00:00
parent 42a75bba53
commit 66e9525e84

View File

@ -139,7 +139,7 @@ ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t access)
access ? access : 0600); access ? access : 0600);
if (fd != -1 && !persistent) { if (fd != -1 && !persistent) {
unlink((const char *) name); (void) unlink((const char *) name);
} }
return fd; return fd;