Skip to content
Browse files

Fixed unitialized memory bug; bump to 1.0.2

  • Loading branch information...
1 parent 13aea7c commit a8f500497f557f7f1f4b19d738cf1cf46ec6ce4e @jkff committed
Showing with 4 additions and 1 deletion.
  1. +3 −0 cbits/hstrptime.c
  2. +1 −1 strptime.cabal
View
3 cbits/hstrptime.c
@@ -1321,6 +1321,9 @@ hstrptime (const char *buf, const char *format, struct tm *tm,
double *psecs, int *poffset)
{
enum locale_status decided;
+
+ memset(tm, 0, sizeof(struct tm));
+
decided = raw;
#if defined(HAVE_WCSTOD)
if(mbcslocale) {
View
2 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

0 comments on commit a8f5004

Please sign in to comment.
Something went wrong with that request. Please try again.