From 22f07d2e09979a8650ae7562c6c57395051be65c Mon Sep 17 00:00:00 2001 From: coffeys Date: Fri, 11 May 2012 10:09:18 +0100 Subject: [PATCH] 7167359: (tz) SEGV on solaris if TZ variable not set Reviewed-by: okutsu --- src/solaris/native/java/util/TimeZone_md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solaris/native/java/util/TimeZone_md.c b/src/solaris/native/java/util/TimeZone_md.c index 3af5d7265..ce2fa5aca 100644 --- a/src/solaris/native/java/util/TimeZone_md.c +++ b/src/solaris/native/java/util/TimeZone_md.c @@ -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; } -- GitLab