]> git.ipfire.org Git - pakfire.git/commitdiff
filelist: Fix return code check on pattern matching function
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Sep 2023 13:03:19 +0000 (13:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Sep 2023 13:04:06 +0000 (13:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/filelist.c

index d44b7964aad55fc2fead0187a01736a25a861a83..9c0d4ded0e8a14089c249186ee4a475258b9612d 100644 (file)
@@ -407,8 +407,7 @@ int pakfire_filelist_contains(struct pakfire_filelist* list, const char* pattern
                if (!path)
                        return -1;
 
-               int r = pakfire_path_match(pattern, path);
-               if (r == 0)
+               if (pakfire_path_match(pattern, path))
                        return 1;
        }