mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
cf->conf_file->file.name.data may be uninitialized, if an allocation failed;
found by Clang Static Analyzer
This commit is contained in:
parent
8b620a8a97
commit
21accae8e5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user