summaryrefslogtreecommitdiffstats
path: root/src/basic/stat-util.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-01 13:57:04 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-06 14:42:03 +0200
commitf90c1959dbe6489a515978eba8a40ec3bf801258 (patch)
tree2ebcb21e0fc6b07244257c30fa2f4c63df84f8aa /src/basic/stat-util.c
parentfs-util: Allow passing NULL path to xopenat() (diff)
downloadsystemd-f90c1959dbe6489a515978eba8a40ec3bf801258.tar.xz
systemd-f90c1959dbe6489a515978eba8a40ec3bf801258.zip
stat-util: Follow coding style in xstatfsat()
Allow passing NULL to indicate the empty path per coding style.
Diffstat (limited to '')
-rw-r--r--src/basic/stat-util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/stat-util.c b/src/basic/stat-util.c
index 633d9479dd..4db11f9299 100644
--- a/src/basic/stat-util.c
+++ b/src/basic/stat-util.c
@@ -461,7 +461,6 @@ int xstatfsat(int dir_fd, const char *path, struct statfs *ret) {
_cleanup_close_ int fd = -EBADF;
assert(dir_fd >= 0 || dir_fd == AT_FDCWD);
- assert(path);
assert(ret);
fd = xopenat(dir_fd, path, O_PATH|O_CLOEXEC|O_NOCTTY, /* xopen_flags = */ 0, /* mode = */ 0);