]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stat-util: Follow coding style in xstatfsat()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 1 Jun 2023 11:57:04 +0000 (13:57 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 6 Jun 2023 12:42:03 +0000 (14:42 +0200)
Allow passing NULL to indicate the empty path per coding style.

src/basic/stat-util.c

index 633d9479dd2a6aa5ac9fbbd9907c60fcc44c21a4..4db11f929917989d85a2d1d7e814188b0f9e6387 100644 (file)
@@ -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);