From 21accae8e58f7db77a74765b340089da2fc5fdef Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 5 Nov 2009 17:10:48 +0000 Subject: [PATCH] cf->conf_file->file.name.data may be uninitialized, if an allocation failed; found by Clang Static Analyzer --- src/core/ngx_conf_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }