comparison src/core/ngx_conf_file.c @ 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 97693137d636
children 151ab752a782
comparison
equal deleted inserted replaced
3295:8b852e4e2643 3296:f63865460aa6
259 } 259 }
260 260
261 if (ngx_close_file(fd) == NGX_FILE_ERROR) { 261 if (ngx_close_file(fd) == NGX_FILE_ERROR) {
262 ngx_log_error(NGX_LOG_ALERT, cf->log, ngx_errno, 262 ngx_log_error(NGX_LOG_ALERT, cf->log, ngx_errno,
263 ngx_close_file_n " %s failed", 263 ngx_close_file_n " %s failed",
264 cf->conf_file->file.name.data); 264 filename->data);
265 return NGX_CONF_ERROR; 265 return NGX_CONF_ERROR;
266 } 266 }
267 267
268 cf->conf_file = prev; 268 cf->conf_file = prev;
269 } 269 }