Skip to content

Commit 56a4e3f

Browse files
committed
chore: comment against the previous commit.
1 parent 59f3712 commit 56a4e3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CoreFoundation/CFKnownLocations.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUs
9797
}
9898
case _kCFKnownLocationUserCurrent:
9999
username = CFGetUserName();
100+
// The above API returns a non-NULL CFStringRef. The failed result is an empty string.
101+
// We need to check for that case and fall through to the next case.
100102
if (!CFEqual(username, CFSTR(""))) {
101103
break;
102104
}

0 commit comments

Comments
 (0)