diff options
author | Andrey Belov <defan@nginx.com> | 2012-08-06 16:06:59 +0000 |
---|---|---|
committer | Andrey Belov <defan@nginx.com> | 2012-08-06 16:06:59 +0000 |
commit | 66e9525e84a2d09269eb766da15df60c5bc0a1dd (patch) | |
tree | f6ea63d62054b8868122433a746b2775d73e71fb /src/os/unix/ngx_files.c | |
parent | 42a75bba535a387688cb708c54f33d592840e73f (diff) | |
download | nginx-66e9525e84a2d09269eb766da15df60c5bc0a1dd.tar.gz nginx-66e9525e84a2d09269eb766da15df60c5bc0a1dd.zip |
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.
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r-- | src/os/unix/ngx_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 2dfa1b7a1..d71aec316 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -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; |