path-util: use path_equal() in empty_or_root()

This commit is contained in:
Yu Watanabe
2021-05-28 13:44:38 +09:00
parent 39d7af99c2
commit 15bac3e8fd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ static inline const char *skip_dev_prefix(const char *p) {
return e ?: p;
}
bool empty_or_root(const char *root);
bool empty_or_root(const char *path);
static inline const char *empty_to_root(const char *path) {
return isempty(path) ? "/" : path;
}