mirror of
https://github.com/nginx/nginx.git
synced 2024-12-02 20:09:01 +08:00
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:
parent
42a75bba53
commit
66e9525e84
@ -139,7 +139,7 @@ ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t access)
|
||||
access ? access : 0600);
|
||||
|
||||
if (fd != -1 && !persistent) {
|
||||
unlink((const char *) name);
|
||||
(void) unlink((const char *) name);
|
||||
}
|
||||
|
||||
return fd;
|
||||
|
Loading…
Reference in New Issue
Block a user