Skip to content

Commit fba4aea

Browse files
author
Darryl H. Thomas
committed
Change size_t value from NULL to 0 to suppress compiler warning.
1 parent 60bd422 commit fba4aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AFNetworking/AFImageRequestOperation.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static dispatch_queue_t image_request_operation_processing_queue() {
7878
size_t width = CGImageGetWidth(imageRef);
7979
size_t height = CGImageGetHeight(imageRef);
8080
size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef);
81-
size_t bytesPerRow = NULL; // CGImageGetBytesPerRow() calculates incorrectly in iOS 5.0, so defer to CGBitmapContextCreate()
81+
size_t bytesPerRow = 0; // CGImageGetBytesPerRow() calculates incorrectly in iOS 5.0, so defer to CGBitmapContextCreate()
8282
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
8383
CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef);
8484

0 commit comments

Comments
 (0)