]> git.ipfire.org Git - pakfire.git/commitdiff
path: Allow parsing empty paths
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Dec 2024 15:26:36 +0000 (15:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Dec 2024 15:26:36 +0000 (15:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/path.c

index 7893c15c6605962083028efb6637054b801aaae0..955ca41fa851d526be3f8742d27e392ed366bd35 100644 (file)
@@ -151,7 +151,7 @@ static int pakfire_path_parse(struct pakfire_path** path, const char* s) {
        int r;
 
        // Check input
-       if (!s || !*s)
+       if (!s)
                return -EINVAL;
 
        // Allocate object