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/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index 84453713ca..5818fee82e 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -993,6 +993,7 @@ union file_handle_union { struct file_handle handle; char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ]; }; +#define FILE_HANDLE_INIT { .handle.handle_bytes = MAX_HANDLE_SZ } int update_reboot_param_file(const char *param); -- cgit v1.2.3-54-g00ecf