Skip to content

Commit 8920038

Browse files
committed
NumberDate: move some locals in _CFTimeZoneInit
Move the variables closer to where they are needed. This clearly separates the "fast" path for the GMT adjustment initialization.
1 parent 28a72f1 commit 8920038

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CoreFoundation/NumberDate.subproj/CFTimeZone.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,9 +1159,6 @@ Boolean _CFTimeZoneInit(CFTimeZoneRef timeZone, CFStringRef name, CFDataRef data
11591159
if (data) {
11601160
return _CFTimeZoneInitInternal(timeZone, name, data);
11611161
}
1162-
1163-
CFStringRef tzName = NULL;
1164-
CFDataRef data = NULL;
11651162

11661163
CFIndex len = CFStringGetLength(name);
11671164
if (6 == len || 8 == len) {
@@ -1187,6 +1184,9 @@ Boolean _CFTimeZoneInit(CFTimeZoneRef timeZone, CFStringRef name, CFDataRef data
11871184
}
11881185
}
11891186
}
1187+
1188+
CFStringRef tzName = NULL;
1189+
CFDataRef data = NULL;
11901190
Boolean tryAbbrev = true;
11911191
CFURLRef baseURL, tempURL;
11921192
void *bytes;

0 commit comments

Comments
 (0)