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 authored and poire-z committed Aug 2, 2024
1 parent 3d05d5a commit 959d28a
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 959d28a

Please sign in to comment.