From db17fa33bcffbc77d18203017e04cd06662b9945 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Thu, 13 Mar 2025 21:25:26 +0100 Subject: [PATCH] Codefix: uninitialized variables in fmt --- src/3rdparty/fmt/base.h | 2 +- src/3rdparty/fmt/chrono.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/3rdparty/fmt/base.h b/src/3rdparty/fmt/base.h index 0e867954bc..a76f42bf88 100644 --- a/src/3rdparty/fmt/base.h +++ b/src/3rdparty/fmt/base.h @@ -1719,7 +1719,7 @@ class format_string_checker { /// internal class and shouldn't be used directly, only via `memory_buffer`. template class buffer { private: - T* ptr_; + T* ptr_ = nullptr; size_t size_; size_t capacity_; diff --git a/src/3rdparty/fmt/chrono.h b/src/3rdparty/fmt/chrono.h index 50c777c841..91f5bed840 100644 --- a/src/3rdparty/fmt/chrono.h +++ b/src/3rdparty/fmt/chrono.h @@ -538,7 +538,7 @@ FMT_BEGIN_EXPORT inline auto localtime(std::time_t time) -> std::tm { struct dispatcher { std::time_t time_; - std::tm tm_; + std::tm tm_{}; inline dispatcher(std::time_t t) : time_(t) {} @@ -589,7 +589,7 @@ inline auto localtime(std::chrono::local_time time) -> std::tm { inline auto gmtime(std::time_t time) -> std::tm { struct dispatcher { std::time_t time_; - std::tm tm_; + std::tm tm_{}; inline dispatcher(std::time_t t) : time_(t) {}