Style: use specified macro instead of magic-number.

This commit is contained in:
Tatsuhiko Kubo 2014-08-06 23:58:44 +09:00
parent 49683ce94e
commit 973a42a70b

View 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\"",