]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
package: Don't make types array static
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Dec 2022 17:49:16 +0000 (17:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Dec 2022 17:49:16 +0000 (17:49 +0000)
Let the compiler decide what is best.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/package.c

index b93c0c798bd28dc96f7b70a0f65da39e811db0ec..5a0307dff371c874d60490a1d10ce387ef438e08 100644 (file)
@@ -1076,7 +1076,7 @@ ERROR:
 }
 
 int pakfire_package_has_rich_deps(struct pakfire_package* pkg) {
-       static const Id types[] = {
+       const Id types[] = {
                // Requires (includes pre-requires)
                SOLVABLE_REQUIRES,
                SOLVABLE_PROVIDES,