Mercurial > hg > nginx
changeset 4869:2b129bb067b5
Made sure to initialize the entire ngx_file_t structure.
Found by Coverity.
author | Andrey Belov <defan@nginx.com> |
---|---|
date | Fri, 28 Sep 2012 13:15:11 +0000 |
parents | 22a6ef66b6f5 |
children | 8a9b7b4e9f2d |
files | src/core/ngx_cycle.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Thu Sep 27 18:01:06 2012 +0000 +++ b/src/core/ngx_cycle.c Fri Sep 28 13:15:11 2012 +0000 @@ -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;