From 06e61fe884486f75c99dbb99fcc97761b99dd3b9 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Mon, 16 May 2022 10:22:45 -0600 Subject: [PATCH] Fix #111, Resolve uninit var static analysis warnings --- elf2cfetbl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elf2cfetbl.c b/elf2cfetbl.c index 8622251..de9454d 100644 --- a/elf2cfetbl.c +++ b/elf2cfetbl.c @@ -1883,6 +1883,9 @@ int32 GetSymbol(int32 SymbolIndex, union Elf_Sym *Symbol) int32_t SeekOffset = (int32_t)calculated_offset; char VerboseStr[60]; int32 i = 0; + + memset(VerboseStr, 0, sizeof(VerboseStr)); + if (SeekOffset != calculated_offset) { printf("Error: SeekOffset may not be %lu\n", (long unsigned int)calculated_offset);