From 42bc229500049ef816a45ce32a19d8987918e6a4 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 7 Mar 2021 17:27:21 -0700 Subject: [PATCH] AK: Initialize the AK::Time members Since we tell the compiler to provide a default constructor we need to initialize the member variables. --- AK/Time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/Time.h b/AK/Time.h index 7f86a2afaf..20633f1070 100644 --- a/AK/Time.h +++ b/AK/Time.h @@ -117,8 +117,8 @@ private: static Time from_half_sanitized(i64 seconds, i32 extra_seconds, u32 nanoseconds); - i64 m_seconds; - u32 m_nanoseconds; // Always less than 1'000'000'000 + i64 m_seconds { 0 }; + u32 m_nanoseconds { 0 }; // Always less than 1'000'000'000 }; template