diff --git a/cbits/hstrptime.c b/cbits/hstrptime.c
--- a/cbits/hstrptime.c
+++ b/cbits/hstrptime.c
@@ -1321,6 +1321,9 @@
             double *psecs, int *poffset)
 {
     enum locale_status decided;
+
+    memset(tm, 0, sizeof(struct tm));
+
     decided = raw;
 #if defined(HAVE_WCSTOD)
     if(mbcslocale) {
diff --git a/strptime.cabal b/strptime.cabal
--- a/strptime.cabal
+++ b/strptime.cabal
@@ -1,6 +1,6 @@
 Name: strptime
 Category: System, Data, Parsing
-Version: 1.0.1
+Version: 1.0.2
 Cabal-version: >= 1.2
 Build-type: Simple
 Copyright: Eugene Kirpichov
