]> git.kaiwu.me - nginx.git/commitdiff
Style: use specified macro instead of magic-number.
authorTatsuhiko Kubo <cubicdaiya@gmail.com>
Wed, 6 Aug 2014 14:58:44 +0000 (23:58 +0900)
committerTatsuhiko Kubo <cubicdaiya@gmail.com>
Wed, 6 Aug 2014 14:58:44 +0000 (23:58 +0900)
src/http/modules/ngx_http_memcached_module.c

index bda038da4519c663cdf5ac3e947a8915048419d2..9636028b6db40d35dbae233e558d3d98cb918f5a 100644 (file)
@@ -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\"",