Skip to content

Commit cb6f532

Browse files
authored
Fix Xcode 11.4 analyze error (#4863)
1 parent f4ae4a4 commit cb6f532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GoogleDataTransportCCTSupport/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# v1.4.1
22
- Fixed a bug that would manifest if a proto ended up being > 16,320 bytes.
3+
- Fix an Xcode 11.4 analyze error. (#4863)
34

45
# v1.4.0
56
- Added the CSH backend and consolidated the CCT, FLL, and CSH backends.

GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTCompressionHelper.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ + (nullable NSData *)gzippedData:(NSData *)data {
4545
int windowBits = 15 + 16; // Enable gzip header instead of zlib header.
4646

4747
int retCode;
48-
if ((retCode = deflateInit2(&strm, level, Z_DEFLATED, windowBits, memLevel,
49-
Z_DEFAULT_STRATEGY)) != Z_OK) {
48+
if (deflateInit2(&strm, level, Z_DEFLATED, windowBits, memLevel, Z_DEFAULT_STRATEGY) != Z_OK) {
5049
return nil;
5150
}
5251

0 commit comments

Comments
 (0)