From: Igor Sysoev Date: Tue, 2 Jun 2009 16:08:38 +0000 (+0000) Subject: fix return value on failure X-Git-Tag: release-0.8.0~2 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=05822df0cb9dcf9909f4d82be7ce1becd108eeac;p=nginx.git fix return value on failure --- diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index b8e998abb..dbe6c34bd 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -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) {