projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e3357
)
stat-util: Follow coding style in xstatfsat()
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 1 Jun 2023 11:57:04 +0000
(13:57 +0200)
committer
Daan 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
patch
|
blob
|
history
diff --git
a/src/basic/stat-util.c
b/src/basic/stat-util.c
index 633d9479dd2a6aa5ac9fbbd9907c60fcc44c21a4..4db11f929917989d85a2d1d7e814188b0f9e6387 100644
(file)
--- 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);