X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fpath-util.c;h=00d2d44993d3711adfc2b244e994360d1f2a8912;hb=5ffa8c818120e35c89becd938d160235c069dd12;hp=ee87c7493defead6eacea8ee32ad68c4ed0eee38;hpb=a0539d7753d6a3ede87bf5e57d7c40d5bc1dc230;p=elogind.git diff --git a/src/shared/path-util.c b/src/shared/path-util.c index ee87c7493..00d2d4499 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;