]> git.ipfire.org Git - pakfire.git/commitdiff
file: Correctly return the error code
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:26:03 +0000 (18:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:26:03 +0000 (18:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c

index 19b296c0a09d28b90d1d43372674dfde8df44bdd..d059bf5ef3aada85f406857ac8f03fe08450e68b 100644 (file)
@@ -97,8 +97,10 @@ static int pakfire_file_from_archive_entry(struct pakfire_file* file, struct arc
        if (path) {
                // Make path absolute
                path = pakfire_path_abspath(path);
-               if (!path)
+               if (!path) {
+                       r = 1;
                        goto ERROR;
+               }
 
                // Set
                r = pakfire_file_set_abspath(file, path);