mirror of
https://github.com/nginx/nginx.git
synced 2024-12-13 11:09:06 +08:00
fix return value
This commit is contained in:
parent
1099f9f657
commit
b5142550cc
@ -568,7 +568,7 @@ ngx_http_rewrite_if(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
|
||||
if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t));
|
||||
if (if_code == NULL) {
|
||||
return NULL;
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if_code->code = ngx_http_script_if_code;
|
||||
|
Loading…
Reference in New Issue
Block a user