author | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 00:06:09 +0000 (17:06 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 00:06:09 +0000 (17:06 -0700) | ||
commit | 291ec0f2d2ce65e5ccb876b46d6468af49ddb82e | |
tree | a1d3a4e01516f1d924c407a9e42a6df0d13b43b6 | tree | snapshot |
parent | 72347a233e6f3c176059a28f0817de6654ef29c7 | commit | diff |
Don't special-case a zero-sized compression.
zlib actually writes a header for that case, and while ignoring that
header will get us the right data, it will also end up messing up our
stream position. So we actually want zlib to "uncompress" even an empty
object.
zlib actually writes a header for that case, and while ignoring that
header will get us the right data, it will also end up messing up our
stream position. So we actually want zlib to "uncompress" even an empty
object.
unpack-objects.c | diff | blob | history |