You've already forked linux-packaging-mono
Imported Upstream version 4.0.4.1
Former-commit-id: d8eb832a9a4b58a238f2e069a0b68c70082f8790
This commit is contained in:
@@ -90,6 +90,8 @@ CreateZStream (gint compress, guchar gzip, read_write_func func, void *gchandle)
|
||||
result->gchandle = gchandle;
|
||||
result->compress = compress;
|
||||
result->buffer = g_new (guchar, BUFFER_SIZE);
|
||||
result->stream->next_out = result->buffer;
|
||||
result->stream->avail_out = BUFFER_SIZE;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -148,7 +150,7 @@ flush_internal (ZStream *stream, gboolean is_final)
|
||||
if (!stream->compress)
|
||||
return 0;
|
||||
|
||||
if (!is_final) {
|
||||
if (!is_final && stream->stream->avail_in != 0) {
|
||||
status = deflate (stream->stream, Z_PARTIAL_FLUSH);
|
||||
if (status != Z_OK && status != Z_STREAM_END)
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user