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.
event_stream
Cliff Frey 15 years ago committed by Ryan Dahl
parent 5dd740304f
commit deaee07c86

@ -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;
}

Loading…
Cancel
Save