comparison src/core/ngx_cycle.c @ 4869:2b129bb067b5

Made sure to initialize the entire ngx_file_t structure. Found by Coverity.
author Andrey Belov <defan@nginx.com>
date Fri, 28 Sep 2012 13:15:11 +0000
parents 6e37004865fb
children 8a9b7b4e9f2d
comparison
equal deleted inserted replaced
4868:22a6ef66b6f5 4869:2b129bb067b5
1036 1036
1037 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "signal process started"); 1037 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "signal process started");
1038 1038
1039 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 1039 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
1040 1040
1041 ngx_memzero(&file, sizeof(ngx_file_t));
1042
1041 file.name = ccf->pid; 1043 file.name = ccf->pid;
1042 file.log = cycle->log; 1044 file.log = cycle->log;
1043 1045
1044 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDONLY, 1046 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDONLY,
1045 NGX_FILE_OPEN, NGX_FILE_DEFAULT_ACCESS); 1047 NGX_FILE_OPEN, NGX_FILE_DEFAULT_ACCESS);