Skip to content

Commit 52a213d

Browse files
Wesley Sneijersgittiver
authored andcommitted
When compiling with GCC 14.1.0 (C++23) parser->data is not initialized. Added base class initialization to HTTPParser fixes this.
1 parent 5a972fe commit 52a213d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/crow/parser.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ namespace crow
100100
return 0;
101101
}
102102
HTTPParser(Handler* handler):
103+
http_parser(),
103104
handler_(handler)
104105
{
105106
http_parser_init(this);

0 commit comments

Comments
 (0)