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:
parent
24a96717a6
commit
86b352fecc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user