]> git.kaiwu.me - nginx.git/commitdiff
Made sure to initialize the entire ngx_file_t structure.
authorAndrey Belov <defan@nginx.com>
Fri, 28 Sep 2012 13:15:11 +0000 (13:15 +0000)
committerAndrey Belov <defan@nginx.com>
Fri, 28 Sep 2012 13:15:11 +0000 (13:15 +0000)
Found by Coverity.

src/core/ngx_cycle.c

index e5468ae9b1abc7cf4d0313f13b70e641599a456d..facf0689f1350b57bb953448e3d98c46d47bceae 100644 (file)
@@ -1038,6 +1038,8 @@ ngx_signal_process(ngx_cycle_t *cycle, char *sig)
 
     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;