[nginx] svn commit: r4795 - trunk/src/os/unix

defan at nginx.com defan at nginx.com
Mon Aug 6 16:07:00 UTC 2012


Author: defan
Date: 2012-08-06 16:06:59 +0000 (Mon, 06 Aug 2012)
New Revision: 4795
URL: http://trac.nginx.org/nginx/changeset/4795/nginx

Log:
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.


Modified:
   trunk/src/os/unix/ngx_files.c

Modified: trunk/src/os/unix/ngx_files.c
===================================================================
--- trunk/src/os/unix/ngx_files.c	2012-08-06 16:06:36 UTC (rev 4794)
+++ trunk/src/os/unix/ngx_files.c	2012-08-06 16:06:59 UTC (rev 4795)
@@ -139,7 +139,7 @@
               access ? access : 0600);
 
     if (fd != -1 && !persistent) {
-        unlink((const char *) name);
+        (void) unlink((const char *) name);
     }
 
     return fd;



More information about the nginx-devel mailing list