mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Core: improved ngx_pstrdup() error handling.
This commit is contained in:
parent
88132eed54
commit
244a6a28b1
@ -781,6 +781,9 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
|
||||
file.len = name.len++;
|
||||
file.data = ngx_pstrdup(cf->pool, &name);
|
||||
if (file.data == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user