aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_cycle.c
diff options
context:
space:
mode:
authorAndrey Belov <defan@nginx.com>2012-09-28 13:15:11 +0000
committerAndrey Belov <defan@nginx.com>2012-09-28 13:15:11 +0000
commitb33a3168838255e92956508a17e6a86239a7afa9 (patch)
tree24b19eb79248ece4cf402dcaab3ea108609a42e4 /src/core/ngx_cycle.c
parent52b59ebc749596f88592f576f5fd2e1010612786 (diff)
downloadnginx-b33a3168838255e92956508a17e6a86239a7afa9.tar.gz
nginx-b33a3168838255e92956508a17e6a86239a7afa9.zip
Made sure to initialize the entire ngx_file_t structure.
Found by Coverity.
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r--src/core/ngx_cycle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index e5468ae9b..facf0689f 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -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;