mirror of
https://github.com/nginx/nginx.git
synced 2024-12-27 01:11:13 -06:00
Made sure to initialize the entire ngx_file_t structure.
Found by Coverity.
This commit is contained in:
parent
52b59ebc74
commit
b33a316883
@ -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…
Reference in New Issue
Block a user