mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-09 12:05:14 +00:00
7167359: (tz) SEGV on solaris if TZ variable not set
Reviewed-by: okutsu
This commit is contained in:
parent
abd7e74713
commit
6e335b3720
@ -651,7 +651,7 @@ findJavaTZ_md(const char *java_home_dir, const char *country)
|
||||
}
|
||||
|
||||
#ifdef __solaris__
|
||||
if (strcmp(tz, "localtime") == 0) {
|
||||
if (tz != NULL && strcmp(tz, "localtime") == 0) {
|
||||
tz = getSolarisDefaultZoneID();
|
||||
freetz = tz;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user