From: Michael Tremer Date: Tue, 30 Aug 2022 18:13:36 +0000 (+0000) Subject: pakfire: Initialize pointer to db so that we don't try to free it on error X-Git-Tag: 0.9.28~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f73fe91d58b83b1288a3def1b6ebf8f4b76d17a;p=pakfire.git pakfire: Initialize pointer to db so that we don't try to free it on error Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index 4dffb035b..3482bd2ae 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -253,7 +253,7 @@ static Id pakfire_namespace_callback(Pool* pool, void* data, Id ns, Id id) { } static int pakfire_populate_pool(struct pakfire* pakfire) { - struct pakfire_db* db; + struct pakfire_db* db = NULL; struct pakfire_repo* commandline = NULL; struct pakfire_repo* dummy = NULL; struct pakfire_repo* system = NULL;