Merge pull request #393 from schu/unused-but-set-variable

filebuf.c: fix unused-but-set warning
This commit is contained in:
Vicent Martí 2011-09-18 19:54:18 -07:00
commit 3125929bc4

View File

@ -108,7 +108,8 @@ static int write_deflate(git_filebuf *file, void *source, size_t len)
zs->avail_out = (uInt)file->buf_size; zs->avail_out = (uInt)file->buf_size;
result = deflate(zs, file->flush_mode); result = deflate(zs, file->flush_mode);
assert(result != Z_STREAM_ERROR); if (result == Z_STREAM_ERROR)
return git__throw(GIT_ERROR, "Failed to deflate input");
have = file->buf_size - (size_t)zs->avail_out; have = file->buf_size - (size_t)zs->avail_out;