summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2016-10-25 01:16:31 +1100
committerKeith Bostic <keith.bostic@mongodb.com>2016-10-24 10:16:31 -0400
commit51d4bca24a726307346cdff89712a8e811f586c6 (patch)
tree19fdd1829bc5ed78ebbaac133d814aa3d2397025 /ext
parent02dbad43779c17b0e2adceb31f4cd0b97bfaeb96 (diff)
downloadmongo-51d4bca24a726307346cdff89712a8e811f586c6.tar.gz
WT-2991 Fix coverity REVERSE_INULL (#3106)
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/zlib/zlib_compress.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/compressors/zlib/zlib_compress.c b/ext/compressors/zlib/zlib_compress.c
index ef20503df0a..9ee8fe3bd8b 100644
--- a/ext/compressors/zlib/zlib_compress.c
+++ b/ext/compressors/zlib/zlib_compress.c
@@ -371,8 +371,7 @@ retry: /* If we reached our maximum reserve, quit. */
ret = 0;
}
-err: if (zs != NULL &&
- (tret = deflateEnd(zs)) != Z_OK && tret != Z_DATA_ERROR)
+err: if ((tret = deflateEnd(zs)) != Z_OK && tret != Z_DATA_ERROR)
ret = zlib_error(compressor, session, "deflateEnd", tret);
if (last_zs != NULL &&
(tret = deflateEnd(last_zs)) != Z_OK && tret != Z_DATA_ERROR)