summaryrefslogtreecommitdiff
path: root/usr/src/common/bzip2/bzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/bzip2/bzlib.c')
-rw-r--r--usr/src/common/bzip2/bzlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/common/bzip2/bzlib.c b/usr/src/common/bzip2/bzlib.c
index 22e2d8826e..de5c009de8 100644
--- a/usr/src/common/bzip2/bzlib.c
+++ b/usr/src/common/bzip2/bzlib.c
@@ -673,12 +673,13 @@ int BZ_API(BZ2_bzDecompressInit)
*/
int BZ_API(BZ2_bzDecompressReset) ( bz_stream* strm )
{
- DState* s = strm->state;
+ DState* s;
if (!bz_config_ok()) return BZ_CONFIG_ERROR;
if (strm == NULL) return BZ_PARAM_ERROR;
+ s = strm->state;
s->strm = strm;
s->state = BZ_X_MAGIC_1;