Skip to content

Commit 2388adc

Browse files
committed
Amend the previous commit: the return value is now inverted, remove the double negation.
1 parent 9a0efdf commit 2388adc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/URL.subproj/CFURLComponents_URIParser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ CF_EXPORT CFStringRef _CFStringCreateByAddingPercentEncodingWithAllowedCharacter
281281
else {
282282
// not big enough? malloc it.
283283
size_t mallocSize;
284-
if ( !_CFMultiplyBufferSizeWithoutOverflow(maxBufferSize, 4, &mallocSize) ) {
284+
if ( _CFMultiplyBufferSizeWithoutOverflow(maxBufferSize, 4, &mallocSize) ) {
285285
inBuf = (UInt8 *)malloc(mallocSize);
286286
}
287287
}
@@ -456,7 +456,7 @@ CF_EXPORT CFStringRef _CFStringCreateByRemovingPercentEncoding(CFAllocatorRef al
456456
else {
457457
// not big enough? malloc it.
458458
size_t mallocSize;
459-
if ( !_CFMultiplyBufferSizeWithoutOverflow(maxBufferSize, 2, &mallocSize) ) {
459+
if ( _CFMultiplyBufferSizeWithoutOverflow(maxBufferSize, 2, &mallocSize) ) {
460460
encodedBuf = (UInt8 *)malloc(mallocSize);
461461
}
462462
}

0 commit comments

Comments
 (0)