X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_header_parser.c;h=0dbaf848f9e72f02d59f55f27e87ef7c4ba79eee;hp=975df2467e3d4b84ffa4f8437e807160ca713bac;hb=d926a12aeec96752456eddfbf9a04a002809a0d2;hpb=179b9e4d1c888871a3393a6045dfb675a14b6675 diff --git a/php_http_header_parser.c b/php_http_header_parser.c index 975df24..0dbaf84 100644 --- a/php_http_header_parser.c +++ b/php_http_header_parser.c @@ -120,8 +120,8 @@ PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parse } case PHP_HTTP_HEADER_PARSER_STATE_KEY: { - const char *colon, *eol_str; - int eol_len; + const char *colon, *eol_str = NULL; + int eol_len = 0; if (buffer->data == (eol_str = php_http_locate_bin_eol(buffer->data, buffer->used, &eol_len))) { /* end of headers */