Fix a compilation error. Remove spaces.

This commit is contained in:
Jiale Zhi 2014-03-10 17:20:21 -07:00
parent bb3e006354
commit a2d7a49107

View file

@ -167,7 +167,7 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
#if (NGX_HAVE_INET6)
if (ngx_memcmp(&address, &gcf->address, sizeof(address)) != 0) {
#else
if (address != gcf->address)
if (address != gcf->address) {
#endif
memcpy(&gcf->address, &address, sizeof(address));
gcf->result = MMDB_lookup_sockaddr(&gcf->database, addr.sockaddr,
@ -205,7 +205,6 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
return NGX_OK;
not_found:
v->not_found = 1;
return NGX_OK;