Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-02 20:09:44 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-06-02 20:09:44 +0400
commit260c4321d71806f51d124d79cdff8e8e496a4956 (patch)
treea6fe073d5f57d49b05562f9ce020b3a532c85c8c /src/http/modules/ngx_http_map_module.c
parent05822df0cb9dcf9909f4d82be7ce1becd108eeac (diff)
return NULL instead of NGX_CONF_ERROR on a create conf failure
Diffstat (limited to 'src/http/modules/ngx_http_map_module.c')
-rw-r--r--src/http/modules/ngx_http_map_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index d0eb02c64..1f7786c3c 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -160,7 +160,7 @@ ngx_http_map_create_conf(ngx_conf_t *cf)
mcf = ngx_palloc(cf->pool, sizeof(ngx_http_map_conf_t));
if (mcf == NULL) {
- return NGX_CONF_ERROR;
+ return NULL;
}
mcf->hash_max_size = NGX_CONF_UNSET_UINT;