summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorthibault.ferrante <thibault.ferrante@gmail.com>2021-01-13 18:00:58 +0100
committerTimo Teräs <timo.teras@iki.fi>2021-01-14 16:19:26 +0200
commit7a3e8f42147b0225dc3d7ca1f51f43e7d9462a28 (patch)
tree15fccdf3fe91cfc359753e0e120104397125c180 /src/database.c
parent18b0b45b5b4e8d7be19afa1492c32abb75b9da4a (diff)
downloadapk-tools-7a3e8f42147b0225dc3d7ca1f51f43e7d9462a28.tar.gz
apk-tools-7a3e8f42147b0225dc3d7ca1f51f43e7d9462a28.tar.bz2
apk-tools-7a3e8f42147b0225dc3d7ca1f51f43e7d9462a28.tar.xz
apk-tools-7a3e8f42147b0225dc3d7ca1f51f43e7d9462a28.zip
database.c: Fixed package DESCRIPTION parsing
Regression introduced by 0fb0d30 which makes parsing a description a critical failure. [TT: Minor stylistic change. Fix also missing final line change from the earlier commit]
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index 7ac73dd..b6d315b 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2138,6 +2138,7 @@ static int load_apkindex(void *sctx, const struct apk_file_info *fi,
if (r <= 0)
return r;
+ r = 0;
repo = &ctx->db->repos[ctx->repo];
if (strcmp(fi->name, "DESCRIPTION") == 0) {