Skip to content

Commit

Permalink
Fix for a segfault, from Marc Lehmann.
Browse files Browse the repository at this point in the history
p4raw-id: //depot/perl@9962
  • Loading branch information
jhi committed May 2, 2001
1 parent b159ebd commit bf8afc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/POSIX/POSIX.xs
Expand Up @@ -3678,7 +3678,7 @@ strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -1)
char *buf = my_strftime(fmt, sec, min, hour, mday, mon, year, wday, yday, isdst);
if (buf) {
ST(0) = sv_2mortal(newSVpv(buf, 0));
free(buf);
Safefree(buf);
}
}

Expand Down
2 changes: 1 addition & 1 deletion ext/Time/Piece/Piece.xs
Expand Up @@ -30,6 +30,6 @@ __strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -
char *buf = my_strftime(fmt, sec, min, hour, mday, mon, year, wday, yday, isdst);
if (buf) {
ST(0) = sv_2mortal(newSVpv(buf, 0));
free(buf);
Safefree(buf);
}
}

0 comments on commit bf8afc6

Please sign in to comment.