Skip to content

Commit

Permalink
Initialize local var
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1 committed Feb 2, 2022
1 parent 0c841c7 commit 722077d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfio/elfio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class elfio
{
clean();

unsigned char e_ident[EI_NIDENT];
unsigned char e_ident[EI_NIDENT] = { 0 };
// Read ELF file signature
stream.seekg( addr_translator[0] );
stream.read( reinterpret_cast<char*>( &e_ident ), sizeof( e_ident ) );
Expand Down

0 comments on commit 722077d

Please sign in to comment.