From 21c1a56e4aaa5bdbad31a43fcbba1091f66b785d Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Mon, 28 Sep 2015 13:55:38 -0400 Subject: [PATCH] history: fix missing initializer warning Issue: #76563 Change-Id: Ifc5567a78dfc1ce3fee518d03fbd3e0e36c3eac1 --- src/historytimecategorymodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/historytimecategorymodel.cpp b/src/historytimecategorymodel.cpp index c19a1836..a5284d95 100644 --- a/src/historytimecategorymodel.cpp +++ b/src/historytimecategorymodel.cpp @@ -138,8 +138,8 @@ HistoryTimeCategoryModel::HistoryConst HistoryTimeCategoryModel::timeToHistoryCo * tm_year int years since 1900 * tm_wday int days since Sunday 0-6 */ - struct tm localCurrentTime = {}; - struct tm localPastTime = {}; + struct tm localCurrentTime; + struct tm localPastTime; ::localtime_r(¤tTime, &localCurrentTime); ::localtime_r(&time, &localPastTime); -- GitLab