xattr-util: use empty_to_null() where appropriate

This commit is contained in:
Lennart Poettering
2026-06-23 22:55:23 +02:00
parent 1e8d527f68
commit e1bdd512ed
+1 -2
View File
@@ -36,8 +36,7 @@ static int normalize_and_maybe_pin_inode(
assert(ret_tfd);
assert(ret_opath);
if (isempty(*path))
*path = NULL; /* Normalize "" to NULL */
*path = empty_to_null(*path); /* Normalize "" to NULL */
if (*fd == AT_FDCWD) {
if (!*path) /* Both unspecified? Then operate on current working directory */