From 2695c5c44e028d1bc07404baf3357e5a6017fc57 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 7 Jan 2015 10:28:04 -0500 Subject: Add initialization helper for file_handle_union --- src/shared/path-util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/shared/path-util.c') diff --git a/src/shared/path-util.c b/src/shared/path-util.c index ee87c7493d..00d2d44993 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -454,10 +454,7 @@ char* path_join(const char *root, const char *path, const char *rest) { 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; -- cgit v1.2.3-54-g00ecf