From 66e9525e84a2d09269eb766da15df60c5bc0a1dd Mon Sep 17 00:00:00 2001 From: Andrey Belov Date: Mon, 6 Aug 2012 16:06:59 +0000 Subject: 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. --- src/os/unix/ngx_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/unix/ngx_files.c') 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; -- cgit v1.2.3