diff options
author | Antony Dovgal <tony2001@php.net> | 2007-06-07 08:59:00 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-06-07 08:59:00 +0000 |
commit | d042fd067569aac8970428629309d9b1110bbbcc (patch) | |
tree | 73feee9ae22642eb7454420018929b8dc6687462 /ext/ftp | |
parent | c9805e7b9240c9513c4fb6add41b004328caf463 (diff) | |
download | php-git-d042fd067569aac8970428629309d9b1110bbbcc.tar.gz |
MFH: php_gmtime_r() fixes
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/ftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index b6fd56bdb0..0ad8bdb5d3 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1012,6 +1012,9 @@ ftp_mdtm(ftpbuf_t *ftp, const char *path) /* figure out the GMT offset */ stamp = time(NULL); gmt = php_gmtime_r(&stamp, &tmbuf); + if (!gmt) { + return -1; + } gmt->tm_isdst = -1; /* apply the GMT offset */ |