unix-time 0.1.4 → 0.1.5
raw patch · 2 files changed
+6/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cbits/conv.c +3/−0
- unix-time.cabal +3/−2
cbits/conv.c view
@@ -11,6 +11,7 @@ #define THREAD_SAFE 0 #endif +#include <string.h> #include <time.h> #include <locale.h> @@ -35,6 +36,7 @@ time_t c_parse_unix_time(char *fmt, char *src) { struct tm dst; init_locale();+ memset(&dst, 0, sizeof(struct tm)); #if THREAD_SAFE strptime_l(src, fmt, &dst, c_locale); #else@@ -46,6 +48,7 @@ time_t c_parse_unix_time_gmt(char *fmt, char *src) { struct tm dst; init_locale();+ memset(&dst, 0, sizeof(struct tm)); #if THREAD_SAFE strptime_l(src, fmt, &dst, c_locale); #else
unix-time.cabal view
@@ -1,5 +1,5 @@ Name: unix-time-Version: 0.1.4+Version: 0.1.5 Author: Kazu Yamamoto <kazu@iij.ad.jp> Maintainer: Kazu Yamamoto <kazu@iij.ad.jp> License: BSD3@@ -25,8 +25,9 @@ , old-time C-Sources: cbits/conv.c -Test-Suite doctests+Test-Suite doctest Type: exitcode-stdio-1.0+ Default-Language: Haskell2010 HS-Source-Dirs: test Ghc-Options: -threaded -Wall Main-Is: doctests.hs