commit | b33a3168838255e92956508a17e6a86239a7afa9 | [log] [tgz] |
---|---|---|
author | Andrey Belov <defan@nginx.com> | Fri Sep 28 13:15:11 2012 +0000 |
committer | Andrey Belov <defan@nginx.com> | Fri Sep 28 13:15:11 2012 +0000 |
tree | 24b19eb79248ece4cf402dcaab3ea108609a42e4 | |
parent | 52b59ebc749596f88592f576f5fd2e1010612786 [diff] [blame] |
Made sure to initialize the entire ngx_file_t structure. Found by Coverity.
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index e5468ae..facf068 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c
@@ -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;