Skip to content

Commit

Permalink
Merge pull request #112 from skliper/fix111-uninit_var
Browse files Browse the repository at this point in the history
Fix #111, Resolve uninit var static analysis warnings
  • Loading branch information
astrogeco committed May 31, 2022
2 parents fbf0a0d + 06e61fe commit 69550bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elf2cfetbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69550bb

Please sign in to comment.