changeset 3001:cf21d35248bc

fix return value
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Jul 2009 11:04:28 +0000
parents 66ef86affbb8
children bf0c7e58e016
files src/http/modules/ngx_http_rewrite_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_rewrite_module.c	Fri Jul 24 19:20:29 2009 +0000
+++ b/src/http/modules/ngx_http_rewrite_module.c	Mon Jul 27 11:04:28 2009 +0000
@@ -568,7 +568,7 @@
 
     if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t));
     if (if_code == NULL) {
-        return NULL;
+        return NGX_CONF_ERROR;
     }
 
     if_code->code = ngx_http_script_if_code;