1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Simplification. bzf->handle is the same as data->file.

This commit is contained in:
Witold Filipczyk 2006-12-12 17:30:22 +01:00 committed by Witold Filipczyk
parent 5424e00131
commit 429d9ad2d6

View File

@ -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)