fix retval initialization
authorMichael Wallner <mike@php.net>
Wed, 25 Feb 2015 19:20:01 +0000 (20:20 +0100)
committerMichael Wallner <mike@php.net>
Wed, 25 Feb 2015 19:20:01 +0000 (20:20 +0100)
php_http_header_parser.c

index 3d3c4276683a284debb93e8e927e27127bc3bd33..f5b88f412f627d796735a5a2ecd19e0c80d2aa6f 100644 (file)
@@ -289,7 +289,7 @@ STATUS php_http_header_parser_parse(php_http_header_parser_t *parser, php_http_b
 
 php_http_header_parser_state_t php_http_header_parser_parse_stream(php_http_header_parser_t *parser, php_http_buffer_t *buf, php_stream *s, unsigned flags, HashTable *headers, php_http_info_callback_t callback_func, void *callback_arg)
 {
-       php_http_header_parser_state_t state = PHP_HTTP_MESSAGE_PARSER_STATE_START;
+       php_http_header_parser_state_t state = PHP_HTTP_HEADER_PARSER_STATE_START;
        TSRMLS_FETCH_FROM_CTX(parser->ts);
 
        if (!buf->data) {