aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_memcached_module.c
diff options
context:
space:
mode:
authorTatsuhiko Kubo <cubicdaiya@gmail.com>2014-08-06 23:58:44 +0900
committerTatsuhiko Kubo <cubicdaiya@gmail.com>2014-08-06 23:58:44 +0900
commit12300c2a20657fc661206f210b36dea05b48f051 (patch)
tree99865a8fd213f943324b71f460dc8a453a61b023 /src/http/modules/ngx_http_memcached_module.c
parentb3066b16e1d6f7e9c27cc092b67591262d3a8b13 (diff)
downloadnginx-12300c2a20657fc661206f210b36dea05b48f051.tar.gz
nginx-12300c2a20657fc661206f210b36dea05b48f051.zip
Style: use specified macro instead of magic-number.
Diffstat (limited to 'src/http/modules/ngx_http_memcached_module.c')
-rw-r--r--src/http/modules/ngx_http_memcached_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c
index bda038da4..9636028b6 100644
--- a/src/http/modules/ngx_http_memcached_module.c
+++ b/src/http/modules/ngx_http_memcached_module.c
@@ -391,7 +391,7 @@ found:
p = line.data + line.len;
u->headers_in.content_length_n = ngx_atoof(start, p - start);
- if (u->headers_in.content_length_n == -1) {
+ if (u->headers_in.content_length_n == NGX_ERROR) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"memcached sent invalid length in response \"%V\" "
"for key \"%V\"",