if a zoneinfo file is not (or is no longer) in use, don't check the
abbrevs pointers, which may be invalid.
const void *p = tm->__tm_zone;
LOCK(lock);
do_tzset();
- if (p != __gmt && p != __tzname[0] && p != __tzname[1]
- && (uintptr_t)p-(uintptr_t)abbrevs >= abbrevs_end - abbrevs)
+ if (p != __gmt && p != __tzname[0] && p != __tzname[1] &&
+ (!zi || (uintptr_t)p-(uintptr_t)abbrevs >= abbrevs_end - abbrevs))
p = "";
UNLOCK(lock);
return p;