Made sure to initialize the entire ngx_file_t structure.

Found by Coverity.
This commit is contained in:
Andrey Belov 2012-09-28 13:15:11 +00:00
parent 52b59ebc74
commit b33a316883

View File

@ -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); 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.name = ccf->pid;
file.log = cycle->log; file.log = cycle->log;