]> git.kaiwu.me - nginx.git/commitdiff
Fixed debug logging in ngx_http_parse_complex_uri().
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Jun 2013 15:45:08 +0000 (19:45 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Jun 2013 15:45:08 +0000 (19:45 +0400)
The *u previously logged isn't yet initialized at this point, and
Valgrind complains.

src/http/ngx_http_parse.c

index 3c168aaf25b613d01847881452a2d91339eb12aa..87a22e0f8f76ccdd7869b5b72a36de79a02393d0 100644 (file)
@@ -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) {