Permalink
Browse files

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.
  • Loading branch information...
1 parent 5dd7403 commit deaee07c862f4f09405d3a04c012b0d06fee745f Cliff Frey committed with ry Jul 6, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 http_parser.c
View
@@ -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;
}

0 comments on commit deaee07

Please sign in to comment.