git: 5e9af2b96bea - main - libefivar: Simplify Z / zero define

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 23 Apr 2025 23:06:48 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e9af2b96bea04b396d888c9ed55f57aa1f28c2a

commit 5e9af2b96bea04b396d888c9ed55f57aa1f28c2a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-04-23 23:06:00 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-04-23 23:06:00 +0000

    libefivar: Simplify Z / zero define
    
    This really onl needs to be one zero long for the entire structure to be
    initialized. Use this form instead.
    
    Sponsored by:           Netflix
---
 lib/libefivar/efivar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libefivar/efivar.c b/lib/libefivar/efivar.c
index fdcffc5403d6..468e1d31f903 100644
--- a/lib/libefivar/efivar.c
+++ b/lib/libefivar/efivar.c
@@ -37,7 +37,7 @@
 
 static int efi_fd = -2;
 
-#define Z { 0, 0, 0, 0, 0, { 0 } }
+#define Z { 0 }
 
 const efi_guid_t efi_guid_empty = Z;