From: Lennart Poettering Date: Tue, 2 Jun 2026 15:35:49 +0000 (+0200) Subject: xattr-util: use empty_to_null() where appropriate X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bdd512edde138047992ff64591fbc66d9552e1;p=thirdparty%2Fsystemd.git xattr-util: use empty_to_null() where appropriate --- diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c index fb886f6ae82..417e8650e53 100644 --- a/src/basic/xattr-util.c +++ b/src/basic/xattr-util.c @@ -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 */