summaryrefslogtreecommitdiff
path: root/ext/standard/info.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-06-07 09:07:12 +0000
committerAntony Dovgal <tony2001@php.net>2007-06-07 09:07:12 +0000
commitf1f0deae4cbfa8006536481359f52dd308e15d95 (patch)
tree33c4cab67b280d5712824ac3180d547fd1901b8d /ext/standard/info.c
parent976a22df1608fa843edddaef0c78a996b664d4a0 (diff)
downloadphp-git-f1f0deae4cbfa8006536481359f52dd308e15d95.tar.gz
php_localtime_r() checks
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r--ext/standard/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index b4be6890dc..2c9809051d 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -1002,7 +1002,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;