aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_geo_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_geo_module.c')
-rw-r--r--src/http/modules/ngx_http_geo_module.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index a3638e4bf..8231de11d 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -64,10 +64,6 @@ ngx_module_t ngx_http_geo_module = {
};
-static ngx_http_variable_value_t ngx_http_geo_null_value =
- ngx_http_variable("");
-
-
/* AF_INET only */
static ngx_int_t
@@ -171,7 +167,8 @@ ngx_http_geo_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
}
if (ngx_radix32tree_insert(tree, 0, 0,
- (uintptr_t) &ngx_http_geo_null_value) == NGX_ERROR)
+ (uintptr_t) &ngx_http_variable_null_value)
+ == NGX_ERROR)
{
return NGX_CONF_ERROR;
}