]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire_repo_walk: Make sure r is initialized
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 17:23:49 +0000 (17:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 17:23:49 +0000 (17:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index f5788933cbbcfc92fdd301c5d62893cea5733e4b..5b98a69a21aed14be81753322ee2dfa69d5246e6 100644 (file)
@@ -1239,10 +1239,10 @@ int pakfire_repo_walk(struct pakfire* pakfire,
 
                // Raise any errors
                if (r)
-                       break;
+                       return r;
        }
 
-       return r;
+       return 0;
 }
 
 static int __pakfire_repo_clean(struct pakfire* pakfire, struct pakfire_repo* repo,