summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2012-01-28 15:14:59 +0000
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>2012-02-11 22:22:25 +0000
commitb0929aaf4ef3874c994465c95f14ee49a6b8ba2a (patch)
tree21cb8e20759f04cca169a141d460deadfbc6de31
parent8c53f8b47773114c3902508c35ecd4e64cb03b47 (diff)
downloadperl-b0929aaf4ef3874c994465c95f14ee49a6b8ba2a.tar.gz
Remember to init_tm() the struct tm before strptime()ing it; a workaround for some architectures that have extra fields
-rw-r--r--ext/POSIX/POSIX.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index d15731795c..65fd9319b1 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -1862,6 +1862,7 @@ strptime(str, fmt, sec=-1, min=-1, hour=-1, mday=-1, mon=-1, year=-1, wday=-1, y
struct tm tm;
char *remains;
+ init_tm(&tm); /* XXX workaround - see init_tm() in core util.c */
tm.tm_sec = sec;
tm.tm_min = min;
tm.tm_hour = hour;