Mercurial > hg > nginx
changeset 3296:f63865460aa6
cf->conf_file->file.name.data may be uninitialized, if an allocation failed;
found by Clang Static Analyzer
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 05 Nov 2009 17:10:48 +0000 |
parents | 8b852e4e2643 |
children | ebc5384479b4 |
files | src/core/ngx_conf_file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c Thu Nov 05 17:09:02 2009 +0000 +++ b/src/core/ngx_conf_file.c Thu Nov 05 17:10:48 2009 +0000 @@ -261,7 +261,7 @@ 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; }