chiark / gitweb /
Add initialization helper for file_handle_union
[elogind.git] / src / shared / path-util.c
index ee87c7493defead6eacea8ee32ad68c4ed0eee38..00d2d44993d3711adfc2b244e994360d1f2a8912 100644 (file)
@@ -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;