summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-11 21:01:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-11 21:01:24 +0100
commit20238b8fa63b8754d14b69467842f8c49fe3bb2b (patch)
treecd2388424fd33f6e24f5b3901974fa18fa07779c /sal
parentfbd001f3502cd71ba2b31536eba3826d846fba95 (diff)
CID#707531 silence coverity
Change-Id: I7fd4b5684cd5d54860c60fdb00ac2431943eece3
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/unx/time.c b/sal/osl/unx/time.c
index 1afaaf6c33a9..14d4ec02d257 100644
--- a/sal/osl/unx/time.c
+++ b/sal/osl/unx/time.c
@@ -155,6 +155,10 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( const oslDateTime* pDateTime, Ti
aTime.tm_wday = 0;
aTime.tm_yday = 0;
+#if defined(STRUCT_TM_HAS_GMTOFF)
+ aTime.tm_gmtoff = 0;
+#endif
+
/* Convert time to calendar value */
nSeconds = mktime( &aTime );