summaryrefslogtreecommitdiffstats
path: root/tester
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-08-19 13:38:23 -0400
committerJoel Sherrill <joel@rtems.org>2021-09-27 17:20:47 -0500
commit70088f6f87381a45c523fedf50f4904c099907ce (patch)
tree13c56f7c80ad023f71bb7d3cfc144b7a0b511f14 /tester
parentTraceWriterQEMU.cc: Change strncpy to memcpy (diff)
downloadrtems-tools-70088f6f87381a45c523fedf50f4904c099907ce.tar.bz2
TraceWriterQEMU.cc: Initialize header._pad
CID 1506204: Uninitialized scalar variable Closes #4488
Diffstat (limited to 'tester')
-rw-r--r--tester/covoar/TraceWriterQEMU.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tester/covoar/TraceWriterQEMU.cc b/tester/covoar/TraceWriterQEMU.cc
index 0f1ea67..1113ba9 100644
--- a/tester/covoar/TraceWriterQEMU.cc
+++ b/tester/covoar/TraceWriterQEMU.cc
@@ -115,6 +115,7 @@ namespace Trace {
header.big_endian = false;
header.machine[0] = 0; // XXX ??
header.machine[1] = 0; // XXX ??
+ header._pad = 0;
status = ::fwrite( &header, sizeof(trace_header), 1, traceFile );
if (status != 1) {
std::cerr << "Unable to write header to " << file << std::endl;