This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c53f8b
)
Remember to init_tm() the struct tm before strptime()ing it; a workaround for some...
author
Paul "LeoNerd" Evans
<leonerd@leonerd.org.uk>
Sat, 28 Jan 2012 15:14:59 +0000
(15:14 +0000)
committer
Ævar Arnfjörð Bjarmason
<avar@cpan.org>
Sat, 11 Feb 2012 22:22:25 +0000
(22:22 +0000)
ext/POSIX/POSIX.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/POSIX/POSIX.xs
b/ext/POSIX/POSIX.xs
index
d157317
..
65fd931
100644
(file)
--- 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;