From 429d9ad2d619fce3345e97b632927234ea4d2f43 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 12 Dec 2006 17:30:22 +0100 Subject: [PATCH] Simplification. bzf->handle is the same as data->file. --- src/encoding/bzip2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/encoding/bzip2.c b/src/encoding/bzip2.c index eb6f90cb..df243bea 100644 --- a/src/encoding/bzip2.c +++ b/src/encoding/bzip2.c @@ -160,12 +160,11 @@ bzip2_read(struct stream_encoded *stream, unsigned char *buf, int len) { struct bz2_enc_data *data = (struct bz2_enc_data *) stream->data; int err = 0; - struct bzFile *bzf = (struct bzFile *)data->bzfile; if (data->last_read) return 0; - clearerr(bzf->handle); + clearerr(data->file); len = BZ2_bzRead2(&err, data->bzfile, buf, len); if (err == BZ_STREAM_END)