diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-13 01:31:24 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-13 01:31:24 +0200 |
commit | 44c5236808f83ff9e2e5311f243141aac91709d1 (patch) | |
tree | bcd31b5e7d2aa53d1780cf9857adb845f57c3dfd /third_party | |
parent | Fix stray 'a' in @room escaping (diff) | |
download | nheko-44c5236808f83ff9e2e5311f243141aac91709d1.tar.xz |
Fix warning on gcc11
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/cpp-httplib-0.5.12/httplib.h | 2 |
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...); |