From d4eaa002a8ab2f73c536f365f68a01c25d28f595 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 15 Jul 2017 03:33:37 -0700 Subject: [PATCH] Silence spurious warning --- CHANGELOG.md | 1 + include/beast/http/detail/basic_parser.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76274d7a..559d3d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * is_invocable works with move-only types * Use std::function and reference wrapper * Add session_alloc to example/common +* Silence spurious warning WebSocket diff --git a/include/beast/http/detail/basic_parser.hpp b/include/beast/http/detail/basic_parser.hpp index 14500f6a..f64f69e7 100644 --- a/include/beast/http/detail/basic_parser.hpp +++ b/include/beast/http/detail/basic_parser.hpp @@ -616,7 +616,7 @@ protected: } name = make_string(first, p); ++p; // eat ':' - char const* token_last; + char const* token_last = nullptr; for(;;) { // eat leading ' ' and '\t'