mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 13:04:26 +00:00
Made sure to initialize the entire ngx_file_t structure.
Found by Coverity.
This commit is contained in:
parent
52b59ebc74
commit
b33a316883
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue