diff options
author | Dave Jones <davej@redhat.com> | 2004-09-02 00:37:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-02 00:37:29 -0700 |
commit | c1cd8a00a032efb63123e8a893d01bd836153241 (patch) | |
tree | 3b3a5c4bfdbd39c1dd7575f7a02b4778077ca8f3 /lib | |
parent | d998729e166273a4dce034fcd523a53f3ddfef0f (diff) | |
download | history-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.c | 2 |
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; |