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/tmpfiles/tmpfiles.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/tmpfiles') diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index ac9a072511..332ddcea76 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -230,10 +230,7 @@ static bool unix_socket_alive(const char *fn) { static int dir_is_mount_point(DIR *d, const char *subdir) { - union file_handle_union h = { - .handle.handle_bytes = MAX_HANDLE_SZ - }; - + union file_handle_union h = FILE_HANDLE_INIT; int mount_id_parent, mount_id; int r_p, r; -- cgit v1.2.3-54-g00ecf