mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-28 16:20:53 +00:00
Initialize local var
This commit is contained in:
parent
0c841c7ed4
commit
722077d4f7
@ -141,7 +141,7 @@ class elfio
|
|||||||
{
|
{
|
||||||
clean();
|
clean();
|
||||||
|
|
||||||
unsigned char e_ident[EI_NIDENT];
|
unsigned char e_ident[EI_NIDENT] = { 0 };
|
||||||
// Read ELF file signature
|
// Read ELF file signature
|
||||||
stream.seekg( addr_translator[0] );
|
stream.seekg( addr_translator[0] );
|
||||||
stream.read( reinterpret_cast<char*>( &e_ident ), sizeof( e_ident ) );
|
stream.read( reinterpret_cast<char*>( &e_ident ), sizeof( e_ident ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user