Remedy Coverity warning. [Randers-Pehrson]

This commit is contained in:
Mark Adler 2015-01-26 21:41:26 -08:00
parent 5370d99a2a
commit 9859a94c10

View File

@ -1490,8 +1490,8 @@ int subvert;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state = (struct inflate_state FAR *)strm->state; state = (struct inflate_state FAR *)strm->state;
state->sane = !subvert;
#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR #ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
state->sane = !subvert;
return Z_OK; return Z_OK;
#else #else
state->sane = 1; state->sane = 1;