From 46575addc41f13d92f1320a819e8c7ef766974d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 11 Apr 2014 13:45:22 +0100 Subject: [PATCH] coverity#738695 Uninitialized scalar field Change-Id: I5a96a726d956f0eac0a7e5441e6fcbb2fd0ae204 --- lotuswordpro/source/filter/localtime.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lotuswordpro/source/filter/localtime.hxx b/lotuswordpro/source/filter/localtime.hxx index 85b000c75059..e3920296d929 100644 --- a/lotuswordpro/source/filter/localtime.hxx +++ b/lotuswordpro/source/filter/localtime.hxx @@ -67,6 +67,18 @@ struct LtTm long tm_wday; /* days since Sunday - [0,6] */ long tm_yday; /* days since January 1 - [0,365] */ long tm_isdst; /* daylight savings time flag */ + LtTm() + : tm_sec(0) + , tm_min(0) + , tm_hour(0) + , tm_mday(0) + , tm_mon(0) + , tm_year(0) + , tm_wday(0) + , tm_yday(0) + , tm_isdst(0) + { + } }; bool LtgGmTime(long rtime,LtTm& rtm); bool LtgLocalTime(long rtime,LtTm& rtm);