diff src/http/ngx_http_script.c @ 2911:32b444fa2ca4

fix return value on failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:08:38 +0000
parents 77264e0157ad
children b941147f2b2e
line wrap: on
line diff
--- 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 *co
 
     new = ngx_array_push_n(codes, size);
     if (new == NULL) {
-        return NGX_CONF_ERROR;
+        return NULL;
     }
 
     if (code) {