| commit | b5142550ccc6b61235683531183437b9a4cdf3a4 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Mon Jul 27 11:04:28 2009 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Mon Jul 27 11:04:28 2009 +0000 |
| tree | ffa590b627508252c749cc3c0c98be376ab1bc82 | |
| parent | 1099f9f6575337a631cd089b8d30eec7ec9ecd17 [diff] |
fix return value
diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c index 840c053..f7c138d 100644 --- a/src/http/modules/ngx_http_rewrite_module.c +++ b/src/http/modules/ngx_http_rewrite_module.c
@@ -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;