diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-05 17:10:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-05 17:10:48 +0000 |
commit | 21accae8e58f7db77a74765b340089da2fc5fdef (patch) | |
tree | 603aee30e4af1eb32060ccb0f887d974fd5f4fcc /src/core/ngx_conf_file.c | |
parent | 8b620a8a97d46faef168db06f3a4dddbf2af6149 (diff) | |
download | nginx-21accae8e58f7db77a74765b340089da2fc5fdef.tar.gz nginx-21accae8e58f7db77a74765b340089da2fc5fdef.zip |
cf->conf_file->file.name.data may be uninitialized, if an allocation failed;
found by Clang Static Analyzer
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r-- | src/core/ngx_conf_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |