From 004f0160ceedd15ee12933b11fd06cb4faf0826b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 18 Oct 2022 18:26:03 +0000 Subject: [PATCH] file: Correctly return the error code Signed-off-by: Michael Tremer --- src/libpakfire/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libpakfire/file.c b/src/libpakfire/file.c index 19b296c0a..d059bf5ef 100644 --- a/src/libpakfire/file.c +++ b/src/libpakfire/file.c @@ -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); -- 2.39.5