Skip to content

Commit c2adcdc

Browse files
authored
Merge pull request swiftlang#2365 from compnerd/not-all-compilers-are-equal
CoreFoundation: fix incorrect check
2 parents 1c1a633 + a5b4d83 commit c2adcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/CFKnownLocations.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUs
9999
abort();
100100
case _kCFKnownLocationUserCurrent: {
101101
const char *buffer = getenv("CFFIXED_USER_HOME");
102-
if (buffer == NULL || *buffer = '\0') {
102+
if (buffer == NULL || *buffer == '\0') {
103103
CFLog(__kCFLogAssertion, CFSTR("CFFIXED_USER_HOME is unset"));
104104
HALT;
105105
}

0 commit comments

Comments
 (0)