From a19161a8b17a607f9d4a92c4ea57bafd55087841 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 28 Aug 2018 17:13:05 +0200 Subject: Assign fFractionOfSecond in shortcut Otherwise it may be uninitialized. Change-Id: Iccb61d66c8410ac8ecdabbd96204d2393060bc1d Reviewed-on: https://gerrit.libreoffice.org/59721 Reviewed-by: Eike Rathke Tested-by: Jenkins --- tools/source/datetime/ttime.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx index d9bfc40dfc02..f1dea02a6afb 100644 --- a/tools/source/datetime/ttime.cxx +++ b/tools/source/datetime/ttime.cxx @@ -287,6 +287,7 @@ void tools::Time::GetClock( double fTimeInDays, if (fTime <= 0.0 || fTime >= 1.0) { nHour = nMinute = nSecond = 0; + fFractionOfSecond = 0.0; return; } -- cgit