From: Andrey Belov Date: Fri, 28 Sep 2012 13:15:11 +0000 (+0000) Subject: Made sure to initialize the entire ngx_file_t structure. X-Git-Tag: release-1.3.7~12 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=b33a3168838255e92956508a17e6a86239a7afa9;p=nginx.git 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 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;