src/solaris/native/java/util/TimeZone_md.c

Print this page

        

@@ -649,11 +649,11 @@
     if (tz != NULL && *tz == ':') {
         tz++;
     }
 
 #ifdef __solaris__
-    if (strcmp(tz, "localtime") == 0) {
+    if (tz != NULL && strcmp(tz, "localtime") == 0) {
         tz = getSolarisDefaultZoneID();
         freetz = tz;
     }
 #endif