aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-02 16:08:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-02 16:08:38 +0000
commit05822df0cb9dcf9909f4d82be7ce1becd108eeac (patch)
treee734242761f5913d05df364cb8ad4be695de74a5 /src/http/ngx_http_script.c
parent3e6470280797e9b4c8a2964cd77f3489cb7a1e91 (diff)
downloadnginx-05822df0cb9dcf9909f4d82be7ce1becd108eeac.tar.gz
nginx-05822df0cb9dcf9909f4d82be7ce1becd108eeac.zip
fix return value on failure
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c2
1 files changed, 1 insertions, 1 deletions
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) {