summaryrefslogtreecommitdiff
path: root/binutils/srconv.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-05-19 15:05:12 +0100
committerNick Clifton <nickc@redhat.com>2022-05-19 15:05:12 +0100
commit95086e1e54a726a0d7671d70640bc76e4fddf198 (patch)
tree8e8283dde5b40f111b4f6b834ddd304821c8f22d /binutils/srconv.c
parent18bd4744611b97e9fca41f97b871eea7bd66bd3e (diff)
downloadbinutils-gdb-95086e1e54a726a0d7671d70640bc76e4fddf198.tar.gz
Fix potentially uninitialised variables in the Windows tools
Diffstat (limited to 'binutils/srconv.c')
-rw-r--r--binutils/srconv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/srconv.c b/binutils/srconv.c
index c77db99a9e7..6fc98bc49d5 100644
--- a/binutils/srconv.c
+++ b/binutils/srconv.c
@@ -316,6 +316,7 @@ wr_hd (struct coff_ofile *p)
struct IT_hd hd;
hd.spare1 = 0;
+ hd.spare2 = 0;
if (bfd_get_file_flags (abfd) & EXEC_P)
hd.mt = MTYPE_ABS_LM;
else