Skip to content

Commit 0114da3

Browse files
committed
i may not be able to reach validPathCount if validPathCount is large enough
Should never happen, but in case it does, i should be a size_t, not an int.
1 parent 461c9a3 commit 0114da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/CFFileUtilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ CF_PRIVATE CFArrayRef _CFCreateCFArrayByTokenizingString(const char *values, cha
13901390
}
13911391
free(copyDirPath);
13921392
CFArrayRef pathArray = CFArrayCreate(kCFAllocatorSystemDefault, (const void **)pathList , validPathCount, &kCFTypeArrayCallBacks);
1393-
for(int i = 0; i < validPathCount; i ++) {
1393+
for(size_t i = 0; i < validPathCount; i ++) {
13941394
CFRelease(pathList[i]);
13951395
}
13961396
return pathArray;

0 commit comments

Comments
 (0)