summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 15:50:20 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commit75111a1b4feb99dcb35cb6f01ba0d7e250e94a5d (patch)
tree8d3db8e40d819b9b6f045ab73f5ba1bf2f4dbd45
parentRemove AllExplanations global variable (diff)
downloadrtems-tools-75111a1b4feb99dcb35cb6f01ba0d7e250e94a5d.tar.bz2
ReportsHtml.cc: Initialize lastState_m
When not initialized, an extra code segment would be added to annotated.html
-rw-r--r--tester/covoar/ReportsHtml.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tester/covoar/ReportsHtml.cc b/tester/covoar/ReportsHtml.cc
index 88ea25b..83fc52f 100644
--- a/tester/covoar/ReportsHtml.cc
+++ b/tester/covoar/ReportsHtml.cc
@@ -41,7 +41,8 @@ namespace Coverage {
time_t timestamp,
const std::string& symbolSetName,
Coverage::Explanations& allExplanations
- ): ReportsBase( timestamp, symbolSetName, allExplanations )
+ ): ReportsBase( timestamp, symbolSetName, allExplanations ),
+ lastState_m( A_SOURCE )
{
reportExtension_m = ".html";
}