From: Igor Sysoev Date: Thu, 5 Nov 2009 17:10:48 +0000 (+0000) Subject: cf->conf_file->file.name.data may be uninitialized, if an allocation failed; X-Git-Tag: release-0.8.23~5 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=21accae8e58f7db77a74765b340089da2fc5fdef;p=nginx.git cf->conf_file->file.name.data may be uninitialized, if an allocation failed; found by Clang Static Analyzer --- diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index c58d8095f..c48d814f8 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -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; }