summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_add_filter_compress.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-02-21 03:25:42 -0500
committerTim Kientzle <kientzle@gmail.com>2010-02-21 03:25:42 -0500
commit992610f1dd74565cda8df166f70f0d8abf4abda7 (patch)
tree08da3d98240104f98ec0fb50cd6ac5a7c349cc20 /libarchive/archive_write_add_filter_compress.c
parent0eb2fe95fbb65e82759f9fd1a0aef553981cae74 (diff)
downloadlibarchive-992610f1dd74565cda8df166f70f0d8abf4abda7.tar.gz
The only place blocking is really needed is just before calling
the client write functions. So I've moved all of the blocking code (that used to be duplicated in every compression filter) into archive_write.c in the code that wraps the client callbacks. As a result, add_filter_none is a true no-op. SVN-Revision: 1936
Diffstat (limited to 'libarchive/archive_write_add_filter_compress.c')
-rw-r--r--libarchive/archive_write_add_filter_compress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_write_add_filter_compress.c b/libarchive/archive_write_add_filter_compress.c
index e8d6344f..7e3ef6bb 100644
--- a/libarchive/archive_write_add_filter_compress.c
+++ b/libarchive/archive_write_add_filter_compress.c
@@ -430,6 +430,7 @@ archive_compressor_compress_close(struct archive_write_filter *f)
ret = __archive_write_filter(f->next_filter,
state->compressed, state->compressed_offset);
cleanup:
+ ret = __archive_write_close_filter(f->next_filter);
free(state->compressed);
free(state);
return (ret);