]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Hygiene, set unconsumed slot exactly once for each branch
authorSebastian Freundt <freundt@ga-group.nl>
Tue, 10 Jun 2014 12:46:32 +0000 (12:46 +0000)
committerSebastian Freundt <freundt@ga-group.nl>
Tue, 10 Jun 2014 12:53:19 +0000 (12:53 +0000)
commitadc91b6969e260908041a1013a01e9da3bfc7966
tree6ffd519f4767a4e949352e9c23174384311a72a4
parent75b78d5c1300c01da6c8fcaf6b9ede6d00a6e5d0
Hygiene, set unconsumed slot exactly once for each branch

in _warc_read().  Also kick __archive_read_consume() because the writer
will consume the bytes for us.  So for the EOF case, set unconsumed to 0,
for the non-EOF case set unconsumed to the minimum of the number of bytes
read and the content length.
libarchive/archive_read_support_format_warc.c