]> git.ipfire.org Git - pakfire.git/commitdiff
cli: pakfire: Initilize config structs for install/update actions
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 15:24:31 +0000 (15:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 15:24:31 +0000 (15:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/pakfire/install.c
src/cli/pakfire/update.c

index 5e2c0f6baaffd92363574df1a5200a50ba400d20..60783366b81abe3049f918622403051a60d78110 100644 (file)
@@ -119,7 +119,10 @@ static int __cli_install(struct pakfire_transaction* transaction, int argc, char
 }
 
 int cli_install(struct pakfire* pakfire, int argc, char* argv[]) {
-       struct config config;
+       struct config config = {
+               .transaction_flags = 0,
+               .job_flags = 0,
+       };
        int r;
 
        // Parse CLI options
index 9f56946c866780878634d337f6396ebf436f4958..98950c250c0424922878e5ea80bd3154c5dbb425 100644 (file)
@@ -135,7 +135,10 @@ static int __cli_update(struct pakfire_transaction* transaction, int argc, char*
 }
 
 int cli_update(struct pakfire* pakfire, int argc, char* argv[]) {
-       struct config config;
+       struct config config = {
+               .transaction_flags = 0,
+               .nexclude = 0,
+       };
        int r;
 
        // Parse CLI options