Skip to content

Commit

Permalink
Fix nasa#111, Resolve uninit var static analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed May 16, 2022
1 parent 51fbe35 commit 06e61fe
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 06e61fe

Please sign in to comment.