comparison src/http/ngx_http_parse.c @ 5247:55dc535ae5dc

Fixed debug logging in ngx_http_parse_complex_uri(). The *u previously logged isn't yet initialized at this point, and Valgrind complains.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 05 Jun 2013 19:45:08 +0400
parents cef7b42d50b3
children b66ec10e901a
comparison
equal deleted inserted replaced
5246:b6562f98bfd8 5247:55dc535ae5dc
1254 * we use "ch = *p++" inside the cycle, but this operation is safe, 1254 * we use "ch = *p++" inside the cycle, but this operation is safe,
1255 * because after the URI there is always at least one character: 1255 * because after the URI there is always at least one character:
1256 * the line feed 1256 * the line feed
1257 */ 1257 */
1258 1258
1259 ngx_log_debug4(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1259 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1260 "s:%d in:'%Xd:%c', out:'%c'", state, ch, ch, *u); 1260 "s:%d in:'%Xd:%c'", state, ch, ch);
1261 1261
1262 switch (state) { 1262 switch (state) {
1263 1263
1264 case sw_usual: 1264 case sw_usual:
1265 1265