From 1aab95ccfcc08a3f84754c4397ddcb9c21731f38 Mon Sep 17 00:00:00 2001 From: Florian Rupprecht Date: Wed, 5 Jun 2024 15:15:00 -0400 Subject: [PATCH] GCC14 uninitialized warning fix attempt 2 --- src/lib/crow/http_parser_merged.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/crow/http_parser_merged.h b/src/lib/crow/http_parser_merged.h index 141c8c2..fea372a 100644 --- a/src/lib/crow/http_parser_merged.h +++ b/src/lib/crow/http_parser_merged.h @@ -1922,10 +1922,9 @@ static const int8_t unhex[256] = inline void http_parser_init(http_parser* parser) { - if (parser == NULL) return; - void *data = parser->data; /* preserve application data */ + //void *data = parser->data; /* preserve application data */ memset(parser, 0, sizeof(*parser)); - parser->data = data; + parser->data = NULL;//data; parser->state = s_start_req; parser->http_errno = CHPE_OK; }