[PATCH rtems-tools v1 1/4] DesiredSymbols.h: Initialize symbolInfo

Ryan Long ryan.long at oarcorp.com
Wed Sep 1 20:00:03 UTC 2021


CID 1399627: Uninitialized pointer field

Closes #4433
---
 tester/covoar/DesiredSymbols.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tester/covoar/DesiredSymbols.h b/tester/covoar/DesiredSymbols.h
index 7ea3a9a..dbeeb2c 100644
--- a/tester/covoar/DesiredSymbols.h
+++ b/tester/covoar/DesiredSymbols.h
@@ -179,6 +179,7 @@ namespace Coverage {
      */
     SymbolInformation() :
       baseAddress( 0 ),
+      sourceFile( NULL ),
       uncoveredBranches( NULL ),
       uncoveredRanges( NULL ),
       unifiedCoverageMap( NULL )
-- 
1.8.3.1



More information about the devel mailing list