We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e4bb4 commit e71d604Copy full SHA for e71d604
Sources/CoreFoundation/CFKnownLocations.c
@@ -97,6 +97,8 @@ CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUs
97
}
98
case _kCFKnownLocationUserCurrent:
99
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.
102
if (!CFEqual(username, CFSTR(""))) {
103
break;
104
0 commit comments