From dc5c6928fb0d45a80947b2a294f77a432985747a Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 5 Jun 2013 19:45:08 +0400 Subject: [PATCH] Fixed debug logging in ngx_http_parse_complex_uri(). The *u previously logged isn't yet initialized at this point, and Valgrind complains. --- src/http/ngx_http_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 3c168aaf2..87a22e0f8 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -1256,8 +1256,8 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes) * the line feed */ - ngx_log_debug4(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "s:%d in:'%Xd:%c', out:'%c'", state, ch, ch, *u); + ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "s:%d in:'%Xd:%c'", state, ch, ch); switch (state) {