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]
cute-signatures
thibault.ferrante 2021-01-13 18:00:58 +01:00 committed by Timo Teräs
parent 18b0b45b5b
commit 7a3e8f4214
2 changed files with 2 additions and 1 deletions

View File

@ -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) {