[rtems-tools commit] ReportsHtml.cc: Initialize lastState_m

Joel Sherrill joel at rtems.org
Tue Aug 3 21:00:44 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    75111a1b4feb99dcb35cb6f01ba0d7e250e94a5d
Changeset: http://git.rtems.org/rtems-tools/commit/?id=75111a1b4feb99dcb35cb6f01ba0d7e250e94a5d

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Tue Jul 27 15:50:20 2021 -0400

ReportsHtml.cc: Initialize lastState_m

When not initialized, an extra code segment would be added to
annotated.html

---

 tester/covoar/ReportsHtml.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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";
   }



More information about the vc mailing list