path-lookup: shortcut patch_root_prefix() if no root_dir

This commit is contained in:
Mike Yuan
2024-10-06 19:32:54 +02:00
parent 716fab66ab
commit b8018297a8
+3
View File
@@ -342,6 +342,9 @@ static int patch_root_prefix(char **p, const char *root_dir) {
assert(p);
if (!root_dir)
return 0;
if (!*p)
return 0;