From 6a363a9dad79488302a326126e2130b4eddf4240 Mon Sep 17 00:00:00 2001 From: Florian Rupprecht Date: Wed, 5 Jun 2024 14:54:44 -0400 Subject: [PATCH] Attempt GCC14 warning fix --- src/lib/crow/http_parser_merged.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/crow/http_parser_merged.h b/src/lib/crow/http_parser_merged.h index 3e3ce9c..141c8c2 100644 --- a/src/lib/crow/http_parser_merged.h +++ b/src/lib/crow/http_parser_merged.h @@ -1922,6 +1922,7 @@ 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 */ memset(parser, 0, sizeof(*parser)); parser->data = data;