This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remember to init_tm() the struct tm before strptime()ing it; a workaround for some...
authorPaul "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

index d157317..65fd931 100644 (file)
@@ -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;