Skip to content

Commit

Permalink
uzlib_uncompress_init: Don't set source_limit and readSource fields.
Browse files Browse the repository at this point in the history
This function is supposed to initialize just the internal state of the
decompressor. Any "public API" fields should be set by user (and all of
source, source_limit and source_read_cb need to be set explicitly by
user in the latest version).
  • Loading branch information
pfalcon committed Jul 13, 2018
1 parent 8a31c03 commit 5c2491b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tinflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,6 @@ void uzlib_init(void)
void uzlib_uncompress_init(TINF_DATA *d, void *dict, unsigned int dictLen)
{
d->eof = 0;
d->source_limit = NULL;
d->readSource = NULL;
d->bitcount = 0;
d->bfinal = 0;
d->btype = -1;
Expand Down

0 comments on commit 5c2491b

Please sign in to comment.