aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2004-09-02 00:37:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-02 00:37:29 -0700
commitc1cd8a00a032efb63123e8a893d01bd836153241 (patch)
tree3b3a5c4bfdbd39c1dd7575f7a02b4778077ca8f3 /lib
parentd998729e166273a4dce034fcd523a53f3ddfef0f (diff)
downloadhistory-c1cd8a00a032efb63123e8a893d01bd836153241.tar.gz
[PATCH] Remove pointless check in zlib
We dereference 'z' a few lines above this check. If it was possible to hit this condition, it wouldve triggered long ago, in the form of a crash. Spotted with the source checker from Coverity.com. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/zlib_inflate/inflate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/zlib_inflate/inflate.c b/lib/zlib_inflate/inflate.c
index 974a0fe85a9c13..70d3d9a96b3b5d 100644
--- a/lib/zlib_inflate/inflate.c
+++ b/lib/zlib_inflate/inflate.c
@@ -53,8 +53,6 @@ int zlib_inflateInit2_(
return Z_VERSION_ERROR;
/* initialize state */
- if (z == NULL)
- return Z_STREAM_ERROR;
z->msg = NULL;
z->state = &WS(z)->internal_state;
z->state->blocks = NULL;