bfd/pdb: fix -Wmaybe-uninitialized warning

Initialize stream0_start to fix spurious -Wmaybe-uninitialized warning
on some versions of gcc.
This commit is contained in:
Mark Harmstone 2024-09-04 18:52:28 +01:00
parent 8a72d8924a
commit 897a57a126

View File

@ -718,7 +718,7 @@ pdb_write_contents (bfd *abfd)
uint32_t num_blocks;
uint32_t num_files = 0;
uint32_t num_directory_bytes = sizeof (uint32_t);
uint32_t stream0_start;
uint32_t stream0_start = 0;
bfd *arelt;
if (bfd_write (pdb_magic, sizeof (pdb_magic), abfd) != sizeof (pdb_magic))