diff options
author | Zbigniew JÄdrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-25 16:40:20 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-25 16:40:20 -0500 |
commit | 6d90157e448a4938aad0bd208c5f192f14b3ef8d (patch) | |
tree | 698b0a9f2b491b7d97ae212aa5a311636522ea4f /src/shared/path-util.c | |
parent | 0e18836796aaa697522a4dd5d8b89ac88aa9e87e (diff) |
Add initialization helper for file_handle_union
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r-- | src/shared/path-util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c index b1f997aef3..152fef9b24 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -315,10 +315,7 @@ bool path_equal(const char *a, const char *b) { int path_is_mount_point(const char *t, bool allow_symlink) { - union file_handle_union h = { - .handle.handle_bytes = MAX_HANDLE_SZ - }; - + union file_handle_union h = FILE_HANDLE_INIT; int mount_id = -1, mount_id_parent = -1; _cleanup_free_ char *parent = NULL; struct stat a, b; |