Skip to content

Commit

Permalink
pdbfmt: fix compiler warning [-Wmissing-braces]
Browse files Browse the repository at this point in the history
If `PDBHdr->read` succeed, the structure is initialized anyway.
  • Loading branch information
benoit-pierre committed Aug 2, 2024
1 parent 2b1b26e commit 21175af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/pdbfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ class PDBFile : public LVNamedStream {
_format = UNKNOWN;
stream->SetPos(0);
lUInt32 fsize = stream->GetSize();
PDBHdr hdr = { 0 };
PDBHdr hdr;
PDBRecordEntry entry;
if ( !hdr.read(stream) )
return false;
Expand Down

0 comments on commit 21175af

Please sign in to comment.