From 05822df0cb9dcf9909f4d82be7ce1becd108eeac Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 2 Jun 2009 16:08:38 +0000 Subject: fix return value on failure --- src/http/ngx_http_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_script.c') 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) { -- cgit