Skip to content

Commit

Permalink
Attempt GCC14 warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Jun 5, 2024
1 parent 0bb0788 commit 6a363a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/crow/http_parser_merged.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a363a9

Please sign in to comment.