[U-Boot] [PATCH 1/1] efi_selftest: missing braces in efi_selftest_textinputex.c

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Sep 15 19:00:52 UTC 2018


gcc 4.8.4 wants to see all levels of braces when initializing a
structure to zeros.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/efi_selftest/efi_selftest_textinputex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_selftest/efi_selftest_textinputex.c b/lib/efi_selftest/efi_selftest_textinputex.c
index d20d8ad89d..de44224ce1 100644
--- a/lib/efi_selftest/efi_selftest_textinputex.c
+++ b/lib/efi_selftest/efi_selftest_textinputex.c
@@ -116,7 +116,7 @@ static int teardown(void)
  */
 static int execute(void)
 {
-	struct efi_key_data input_key = {0,};
+	struct efi_key_data input_key = { {0, 0}, {0, 0} };
 	efi_status_t ret;
 	efi_uintn_t index;
 
-- 
2.18.0



More information about the U-Boot mailing list