From deaee07c862f4f09405d3a04c012b0d06fee745f Mon Sep 17 00:00:00 2001 From: Cliff Frey Date: Tue, 6 Jul 2010 10:44:47 -0700 Subject: [PATCH] fix http_parser_init to initialize flags correctly Yay valgrind testing I don't believe that this actually mattered at all, because state was initialized correctly, and flags would be set to 0 almost immediately anyways. --- http_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http_parser.c b/http_parser.c index 345f049..a3021cf 100644 --- a/http_parser.c +++ b/http_parser.c @@ -1545,4 +1545,5 @@ http_parser_init (http_parser *parser, enum http_parser_type t) parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res)); parser->nread = 0; parser->upgrade = 0; + parser->flags = 0; }