cf->conf_file->file.name.data may be uninitialized, if an allocation failed;

found by Clang Static Analyzer
This commit is contained in:
Igor Sysoev 2009-11-05 17:10:48 +00:00
parent 8b620a8a97
commit 21accae8e5

View File

@ -261,7 +261,7 @@ done:
if (ngx_close_file(fd) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_ALERT, cf->log, ngx_errno,
ngx_close_file_n " %s failed",
cf->conf_file->file.name.data);
filename->data);
return NGX_CONF_ERROR;
}