From: Michael Tremer Date: Sun, 27 Oct 2024 08:59:06 +0000 (+0000) Subject: tests: db: Initialize package to avoid SEGV on early fails X-Git-Tag: 0.9.30~797 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a67224aece9d835cdb00dc867691b6aa5fa4877a;p=pakfire.git tests: db: Initialize package to avoid SEGV on early fails Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/db.c b/tests/libpakfire/db.c index 795790b89..909a9ab25 100644 --- a/tests/libpakfire/db.c +++ b/tests/libpakfire/db.c @@ -82,6 +82,7 @@ static int test_add_package(const struct test* t) { struct pakfire_db* db = NULL; struct pakfire_repo* repo = NULL; struct pakfire_archive* archive = NULL; + struct pakfire_package* package = NULL; int r = EXIT_FAILURE; ASSERT(repo = pakfire_get_repo(t->pakfire, PAKFIRE_REPO_DUMMY));