[nginx] svn commit: r4870 - trunk/src/core

defan at nginx.com defan at nginx.com
Fri Sep 28 13:15:12 UTC 2012


Author: defan
Date: 2012-09-28 13:15:11 +0000 (Fri, 28 Sep 2012)
New Revision: 4870
URL: http://trac.nginx.org/nginx/changeset/4870/nginx

Log:
Made sure to initialize the entire ngx_file_t structure.

Found by Coverity.


Modified:
   trunk/src/core/ngx_cycle.c

Modified: trunk/src/core/ngx_cycle.c
===================================================================
--- trunk/src/core/ngx_cycle.c	2012-09-27 18:01:06 UTC (rev 4869)
+++ trunk/src/core/ngx_cycle.c	2012-09-28 13:15:11 UTC (rev 4870)
@@ -1038,6 +1038,8 @@
 
     ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
 
+    ngx_memzero(&file, sizeof(ngx_file_t));
+
     file.name = ccf->pid;
     file.log = cycle->log;
 



More information about the nginx-devel mailing list