summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-13 01:31:24 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-13 01:31:24 +0200
commit44c5236808f83ff9e2e5311f243141aac91709d1 (patch)
treebcd31b5e7d2aa53d1780cf9857adb845f57c3dfd
parentFix stray 'a' in @room escaping (diff)
downloadnheko-44c5236808f83ff9e2e5311f243141aac91709d1.tar.xz
Fix warning on gcc11
-rw-r--r--third_party/cpp-httplib-0.5.12/httplib.h2
1 files changed, 1 insertions, 1 deletions
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 <typename... Args>
 inline ssize_t Stream::write_format(const char *fmt, const Args &... args) {
-  std::array<char, 2048> buf;
+        std::array<char, 2048> buf{};
 
 #if defined(_MSC_VER) && _MSC_VER < 1900
   auto sn = _snprintf_s(buf, bufsiz, buf.size() - 1, fmt, args...);