]> git.kaiwu.me - nginx.git/commitdiff
fix return value
authorIgor Sysoev <igor@sysoev.ru>
Mon, 27 Jul 2009 11:04:28 +0000 (11:04 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 27 Jul 2009 11:04:28 +0000 (11:04 +0000)
src/http/modules/ngx_http_rewrite_module.c

index 840c05330b5e1dc4489886b2c7e88c153fa8d186..f7c138dbbde400b4111923c904759ba4b9d68489 100644 (file)
@@ -568,7 +568,7 @@ ngx_http_rewrite_if(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
     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;