File pacemaker-libcrmcommon-crm_time_t-initialized-1.patch of Package pacemaker.3577
commit fa537f2266b6a85fec8eedc50e004f79dc28a32d
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Thu Jun 2 16:23:14 2016 -0500
Fix: libcrmcommon: ensure crm_time_t structure is fully initialized by API calls
makes coverity happy
diff --git a/lib/common/iso8601.c b/lib/common/iso8601.c
index 06b0a74..d0be0cf 100644
--- a/lib/common/iso8601.c
+++ b/lib/common/iso8601.c
@@ -1001,6 +1001,8 @@ ha_set_tm_time(crm_time_t * target, struct tm *source)
int h_offset = 0;
int m_offset = 0;
+ target->duration = FALSE;
+
if (source->tm_year > 0) {
/* years since 1900 */
target->years = 1900 + source->tm_year;