coverity#738695 Uninitialized scalar field

Change-Id: I5a96a726d956f0eac0a7e5441e6fcbb2fd0ae204
This commit is contained in:
Caolán McNamara
2014-04-11 13:45:22 +01:00
parent 2e87d4241f
commit 46575addc4

View File

@@ -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);