diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cfd243c..268e6da6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ HTTP: * Tidy up basic_string_body * Add vector_body * span, string, vector bodies are public +* Fix spurious uninitialized warning -------------------------------------------------------------------------------- diff --git a/include/beast/http/detail/basic_parser.hpp b/include/beast/http/detail/basic_parser.hpp index 37e2e335..d61a32dc 100644 --- a/include/beast/http/detail/basic_parser.hpp +++ b/include/beast/http/detail/basic_parser.hpp @@ -518,7 +518,7 @@ protected: string_view& result, error_code& ec) { auto const first = it; - char const* token_last; + char const* token_last = nullptr; auto p = parse_token_to_eol( it, last, token_last, ec); if(ec)