summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-16 13:47:26 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-16 13:47:26 +0300
commit0f6d96a4f5a904fd95b96e13715b50befa6a0ee9 (patch)
treee43022707015019f093c14fd1afd2440d6d75ead /src/index.c
parent6715a0ba12af54767ba889de07afe3543b7c1543 (diff)
downloadapk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.gz
apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.bz2
apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.xz
apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.zip
gzip: always autoclose the inner stream
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 62460f7..d7402f9 100644
--- a/src/index.c
+++ b/src/index.c
@@ -48,7 +48,7 @@ static int index_read_file(struct apk_database *db, struct index_ctx *ictx)
if (apk_file_get_info(ictx->index, APK_CHECKSUM_NONE, &fi) < 0)
return -1;
ictx->index_mtime = fi.mtime;
- bs = apk_bstream_from_istream(apk_bstream_gunzip(apk_bstream_from_url(ictx->index), 1));
+ bs = apk_bstream_from_istream(apk_bstream_gunzip(apk_bstream_from_url(ictx->index)));
if (bs == NULL)
return -1;
r = apk_db_index_read(db, bs, 0);