path-lookup: shortcut patch_root_prefix() if no root_dir
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user