diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-07-27 11:04:28 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-07-27 11:04:28 +0000 |
| commit | b5142550ccc6b61235683531183437b9a4cdf3a4 (patch) | |
| tree | ffa590b627508252c749cc3c0c98be376ab1bc82 /src/http/modules/ngx_http_rewrite_module.c | |
| parent | 1099f9f6575337a631cd089b8d30eec7ec9ecd17 (diff) | |
| download | nginx-b5142550ccc6b61235683531183437b9a4cdf3a4.tar.gz nginx-b5142550ccc6b61235683531183437b9a4cdf3a4.tar.bz2 | |
fix return value
Diffstat (limited to 'src/http/modules/ngx_http_rewrite_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_rewrite_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c index 840c05330..f7c138dbb 100644 --- a/src/http/modules/ngx_http_rewrite_module.c +++ b/src/http/modules/ngx_http_rewrite_module.c @@ -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; |
