From 31eb65eefddf4b0f339e41825df2f2fcca9a559e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 27 Feb 2015 21:06:11 -0800 Subject: [PATCH] Patched to compile on newer GCCs. --- utils/fatelf-utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/fatelf-utils.c b/utils/fatelf-utils.c index 659a17d..0a07752 100644 --- a/utils/fatelf-utils.c +++ b/utils/fatelf-utils.c @@ -667,6 +667,8 @@ static int xfind_fatelf_record_by_fields(const FATELF_header *header, int retval = -1; int i = 0; + memset(&rec, '\0', sizeof (rec)); + while (1) { const char ch = *ptr;