From: Michael Tremer Date: Tue, 18 Oct 2022 18:26:03 +0000 (+0000) Subject: file: Correctly return the error code X-Git-Tag: 0.9.28~248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=004f0160ceedd15ee12933b11fd06cb4faf0826b;p=pakfire.git file: Correctly return the error code Signed-off-by: Michael Tremer --- 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);