]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Make the static analyzer happy again
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 22:39:03 +0000 (22:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 22:39:03 +0000 (22:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index 5dae617cf4c26d0eccff5e06fad8c231216664e9..ee78fcf859bfde40980a1dec9c8cff95188dd9c6 100644 (file)
@@ -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);