summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-08-28 17:13:05 +0200
committerEike Rathke <erack@redhat.com>2018-08-28 19:50:04 +0200
commita19161a8b17a607f9d4a92c4ea57bafd55087841 (patch)
tree5601b6de024d84be7296cfc80f94fed68944f084 /tools
parentdfb30a0b5c1f36f44e8806d9491cced343f4b8fd (diff)
Assign fFractionOfSecond in shortcut
Otherwise it may be uninitialized. Change-Id: Iccb61d66c8410ac8ecdabbd96204d2393060bc1d Reviewed-on: https://gerrit.libreoffice.org/59721 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'tools')
-rw-r--r--tools/source/datetime/ttime.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}