changeset 13749:d2ccbd9ff51b

8234591: [11u] Build with old C compiler broken by 8223490 Reviewed-by: phh
author mdoerr
date Fri, 22 Nov 2019 10:06:55 +0100
parents 5b86f2e0578d
children f9822409c531
files src/solaris/native/java/util/TimeZone_md.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/util/TimeZone_md.c	Tue Dec 17 04:13:42 2019 +0000
+++ b/src/solaris/native/java/util/TimeZone_md.c	Fri Nov 22 10:06:55 2019 +0100
@@ -136,7 +136,8 @@
 
     if (strcmp(dir, ZONEINFO_DIR) == 0) {
         /* fast path for 1st iteration */
-        for (unsigned int i = 0; i < sizeof (popularZones) / sizeof (popularZones[0]); i++) {
+        unsigned int i;
+        for (i = 0; i < sizeof (popularZones) / sizeof (popularZones[0]); i++) {
             pathname = getPathName(dir, popularZones[i]);
             if (pathname == NULL) {
                 continue;