From: Michael Tremer Date: Thu, 30 Jan 2025 22:39:03 +0000 (+0000) Subject: repo: Make the static analyzer happy again X-Git-Tag: 0.9.30~232 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8ec8858af73f3efaa5532cc811339bd4d5ddb25;p=pakfire.git repo: Make the static analyzer happy again Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index 5dae617c..ee78fcf8 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -895,6 +895,12 @@ int pakfire_repo_create(struct pakfire_repo** repo, goto ERROR; } + // Make the static analyzer happy + if (!self->appdata) { + r = -ENOMEM; + goto ERROR; + } + // Update the subpriority pakfire_repo_update_subpriority(self);