Skip to content

Commit 722077d

Browse files
committed
Initialize local var
1 parent 0c841c7 commit 722077d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elfio/elfio.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class elfio
141141
{
142142
clean();
143143

144-
unsigned char e_ident[EI_NIDENT];
144+
unsigned char e_ident[EI_NIDENT] = { 0 };
145145
// Read ELF file signature
146146
stream.seekg( addr_translator[0] );
147147
stream.read( reinterpret_cast<char*>( &e_ident ), sizeof( e_ident ) );

0 commit comments

Comments
 (0)