diff options
author | Antony Dovgal <tony2001@php.net> | 2007-06-07 09:07:36 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-06-07 09:07:36 +0000 |
commit | 074b58b7f1ed52850c96f603e318e6496b82442e (patch) | |
tree | 24c1a5aaa1b5a3b3aa3275b5bc3347a1ef5a9a27 /ext/standard/info.c | |
parent | d042fd067569aac8970428629309d9b1110bbbcc (diff) | |
download | php-git-074b58b7f1ed52850c96f603e318e6496b82442e.tar.gz |
MFH: php_localtime_r() checks
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r-- | ext/standard/info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index a3b349177d..eb587366a0 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -1066,7 +1066,7 @@ PHPAPI char *php_logo_guid() the_time = time(NULL); ta = php_localtime_r(&the_time, &tmbuf); - if ((ta->tm_mon==3) && (ta->tm_mday==1)) { + if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) { logo_guid = PHP_EGG_LOGO_GUID; } else { logo_guid = PHP_LOGO_GUID; |