]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remedy Coverity warning. [Randers-Pehrson]
authorMark Adler <madler@alumni.caltech.edu>
Tue, 27 Jan 2015 05:41:26 +0000 (21:41 -0800)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 3 Nov 2015 14:25:37 +0000 (15:25 +0100)
 Conflicts:
inflate.c

inflate.c

index 0eef2f1f5690a43dc3342a4e80d08e731336811e..321f9e5de3cbdd641d05bed99f9ddf169c6f564e 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -1445,8 +1445,8 @@ int ZEXPORT inflateUndermine(z_stream *strm, int subvert) {
     if (strm == Z_NULL || strm->state == Z_NULL)
         return Z_STREAM_ERROR;
     state = (struct inflate_state *)strm->state;
-    state->sane = !subvert;
 #ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
+    state->sane = !subvert;
     return Z_OK;
 #else
     state->sane = 1;