[nginx] Fixed debug logging in ngx_http_parse_complex_uri().

Maxim Dounin mdounin at mdounin.ru
Wed Jun 5 16:10:04 UTC 2013


details:   http://hg.nginx.org/nginx/rev/55dc535ae5dc
branches:  
changeset: 5247:55dc535ae5dc
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Jun 05 19:45:08 2013 +0400
description:
Fixed debug logging in ngx_http_parse_complex_uri().

The *u previously logged isn't yet initialized at this point, and
Valgrind complains.

diffstat:

 src/http/ngx_http_parse.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
--- 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_requ
          * 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) {
 



More information about the nginx-devel mailing list