[PATCH v2 02/13] ReportsHtml.cc: Initialize lastState_m

Ryan Long ryan.long at oarcorp.com
Mon Aug 2 20:44:18 UTC 2021


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



More information about the devel mailing list