From b5de5bb119c1c66a7af62503113be5f2ee46d5c8 Mon Sep 17 00:00:00 2001 From: mdoerr Date: Fri, 22 Nov 2019 10:06:55 +0100 Subject: [PATCH] 8234591: [11u] Build with old C compiler broken by 8223490 Reviewed-by: phh --- src/solaris/native/java/util/TimeZone_md.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/solaris/native/java/util/TimeZone_md.c b/src/solaris/native/java/util/TimeZone_md.c index 81b4642d8..a1f1dc37e 100644 --- a/src/solaris/native/java/util/TimeZone_md.c +++ b/src/solaris/native/java/util/TimeZone_md.c @@ -136,7 +136,8 @@ findZoneinfoFile(char *buf, size_t size, const char *dir) 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; -- GitLab