Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_repo: ensure the variable ret is always existing and assigned
Baptiste Daroussin committed 4 years ago
commit 4eda786a014bfc4c906c24ae2a9e93c2ff470140
parent 7dc30d2
1 file changed +1 -1
modified libpkg/pkg_repo.c
@@ -908,6 +908,7 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
			goto cleanup;
		}

+
		ret = EPKG_FATAL;
		it = pkghash_iterator(sc);
		while (pkghash_next(&it)) {
			s = (struct sig_cert *) it.value;
@@ -915,7 +916,6 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
				metafd);
			if (ret == EPKG_OK && s->trusted)
				break;
-

			ret = EPKG_FATAL;
		}
		if (ret != EPKG_OK) {