From ed2e23c8c793e34a2ced894b88c13a0b1077ce05 Mon Sep 17 00:00:00 2001 From: "thibault.ferrante" Date: Wed, 13 Jan 2021 18:00:58 +0100 Subject: 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] --- src/database.c | 1 + test/iolimit1.test | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database.c b/src/database.c index b21737a..82bf790 100644 --- a/src/database.c +++ b/src/database.c @@ -2187,6 +2187,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) { diff --git a/test/iolimit1.test b/test/iolimit1.test index 066e89b..750ff8a 100644 --- a/test/iolimit1.test +++ b/test/iolimit1.test @@ -2,4 +2,4 @@ --test-repo iolimit.repo add test-f @EXPECT -ERROR: Failed to open repository iolimit.repo : No buffer space available \ No newline at end of file +ERROR: Failed to open repository iolimit.repo : No buffer space available -- cgit v1.2.3-70-g09d2