提交 22f07d2e 编写于 作者: C coffeys

7167359: (tz) SEGV on solaris if TZ variable not set

Reviewed-by: okutsu
上级 4505dd4f
...@@ -651,7 +651,7 @@ findJavaTZ_md(const char *java_home_dir, const char *country) ...@@ -651,7 +651,7 @@ findJavaTZ_md(const char *java_home_dir, const char *country)
} }
#ifdef __solaris__ #ifdef __solaris__
if (strcmp(tz, "localtime") == 0) { if (tz != NULL && strcmp(tz, "localtime") == 0) {
tz = getSolarisDefaultZoneID(); tz = getSolarisDefaultZoneID();
freetz = tz; freetz = tz;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册