]> git.ipfire.org Git - pakfire.git/commitdiff
file: Return 0 when the cleanup job is done
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Sep 2021 16:31:53 +0000 (16:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Sep 2021 16:31:53 +0000 (16:31 +0000)
r contains the number of characters written to the string which is not
what we want to return.

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

index f6e6a75b1cfc449e0c00eecec670e7e0c9993feb..76430db33b69da9c842e57eabb87029031c991b1 100644 (file)
@@ -332,5 +332,5 @@ int pakfire_file_cleanup(struct pakfire_file* file) {
                }
        }
 
-       return r;
+       return 0;
 }