[PATCH v1 2/3] GcovData.cc: Initialize gcnoPreamble

Ryan Long ryan.long at oarcorp.com
Tue Aug 24 17:12:01 UTC 2021


CID 1506206: Uninitialized scalar field

Closes #4487
---
 tester/covoar/GcovData.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tester/covoar/GcovData.cc b/tester/covoar/GcovData.cc
index 02e7489..723e9af 100644
--- a/tester/covoar/GcovData.cc
+++ b/tester/covoar/GcovData.cc
@@ -21,6 +21,7 @@ namespace Gcov {
 
   GcovData::GcovData( Coverage::DesiredSymbols& symbolsToAnalyze ):
     numberOfFunctions( 0 ),
+    gcnoPreamble(),
     symbolsToAnalyze_m( symbolsToAnalyze )
   {
   }
-- 
1.8.3.1



More information about the devel mailing list