From f90c1959dbe6489a515978eba8a40ec3bf801258 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 1 Jun 2023 13:57:04 +0200 Subject: [PATCH] stat-util: Follow coding style in xstatfsat() Allow passing NULL to indicate the empty path per coding style. --- src/basic/stat-util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/basic/stat-util.c b/src/basic/stat-util.c index 633d9479dd2..4db11f92991 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); -- 2.47.3