Fix uninitialized-variable error with Xcode 4.6+ #57

Merged
merged 1 commit into from Feb 14, 2013
View
9 Vendor/CocoaAsyncSocket/GCDAsyncSocket.m
@@ -4213,16 +4213,13 @@ - (void)doReadData
if ([self usingCFStreamForTLS])
{
+ hasBytesAvailable = NO;
+ estimatedBytesAvailable = 0;
#if TARGET_OS_IPHONE
-
// Relegated to using CFStream... :( Boo! Give us a full SecureTransport stack Apple!
-
- estimatedBytesAvailable = 0;
+
if ((flags & kSecureSocketHasBytesAvailable) && CFReadStreamHasBytesAvailable(readStream))
hasBytesAvailable = YES;
- else
- hasBytesAvailable = NO;
-
#endif
}
else