View | Details | Raw Unified | Return to bug 28777
Collapse All | Expand All

(-)a/support/zlib-helper.c (-2 / +3 lines)
Lines 90-95 CreateZStream (gint compress, guchar gzip, read_write_func func, void *gchandle) Link Here
90
	result->gchandle = gchandle;
90
	result->gchandle = gchandle;
91
	result->compress = compress;
91
	result->compress = compress;
92
	result->buffer = g_new (guchar, BUFFER_SIZE);
92
	result->buffer = g_new (guchar, BUFFER_SIZE);
93
	result->stream->next_out = result->buffer;
94
	result->stream->avail_out = BUFFER_SIZE;
93
	return result;
95
	return result;
94
}
96
}
95
97
Lines 148-154 flush_internal (ZStream *stream, gboolean is_final) Link Here
148
	if (!stream->compress)
150
	if (!stream->compress)
149
		return 0;
151
		return 0;
150
152
151
	if (!is_final) {
153
	if (!is_final && stream->stream->avail_in != 0) {
152
		status = deflate (stream->stream, Z_PARTIAL_FLUSH);
154
		status = deflate (stream->stream, Z_PARTIAL_FLUSH);
153
		if (status != Z_OK && status != Z_STREAM_END)
155
		if (status != Z_OK && status != Z_STREAM_END)
154
			return status;
156
			return status;
155
- 

Return to bug 28777