mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix return value on failure
This commit is contained in:
@@ -561,7 +561,7 @@ ngx_http_script_add_code(ngx_array_t *codes, size_t size, void *code)
|
|||||||
|
|
||||||
new = ngx_array_push_n(codes, size);
|
new = ngx_array_push_n(codes, size);
|
||||||
if (new == NULL) {
|
if (new == NULL) {
|
||||||
return NGX_CONF_ERROR;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user