Initialize local var

This commit is contained in:
Serge Lamikhov-Center 2022-02-02 23:31:33 +02:00
parent 0c841c7ed4
commit 722077d4f7

View File

@ -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 ) );