fix return value on failure

This commit is contained in:
Igor Sysoev 2009-06-02 16:08:38 +00:00
parent 3e64702807
commit 05822df0cb

View File

@ -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);
if (new == NULL) {
return NGX_CONF_ERROR;
return NULL;
}
if (code) {