# HG changeset patch # User Andrey Belov # Date 1348838111 0 # Node ID 2b129bb067b5f8fc8b4f84071a865e0f07e93785 # Parent 22a6ef66b6f52696d8eea8111cbd724087110899 Made sure to initialize the entire ngx_file_t structure. Found by Coverity. diff -r 22a6ef66b6f5 -r 2b129bb067b5 src/core/ngx_cycle.c --- 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;