Skip to content

Commit

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

0 comments on commit 1aab95c

Please sign in to comment.