From 44c5236808f83ff9e2e5311f243141aac91709d1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 13 May 2021 01:31:24 +0200 Subject: [PATCH] Fix warning on gcc11 --- third_party/cpp-httplib-0.5.12/httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/cpp-httplib-0.5.12/httplib.h b/third_party/cpp-httplib-0.5.12/httplib.h index 7816df8b..ed7b61e1 100644 --- a/third_party/cpp-httplib-0.5.12/httplib.h +++ b/third_party/cpp-httplib-0.5.12/httplib.h @@ -2906,7 +2906,7 @@ inline ssize_t Stream::write(const std::string &s) { template inline ssize_t Stream::write_format(const char *fmt, const Args &... args) { - std::array buf; + std::array buf{}; #if defined(_MSC_VER) && _MSC_VER < 1900 auto sn = _snprintf_s(buf, bufsiz, buf.size() - 1, fmt, args...);