[PATCH v1 1/3] rtems-exeinfo.cpp: Initialize byteorder

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


CID 1471637: Uninitialized scalar field

Closes #4499
---
 linkers/rtems-exeinfo.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linkers/rtems-exeinfo.cpp b/linkers/rtems-exeinfo.cpp
index caae168..e54f9b2 100644
--- a/linkers/rtems-exeinfo.cpp
+++ b/linkers/rtems-exeinfo.cpp
@@ -210,7 +210,8 @@ namespace rld
 
     section::section (const section& orig)
       : sec (orig.sec),
-        data (orig.data)
+        data (orig.data),
+        byteorder (orig.byteorder)
     {
     }
 
-- 
1.8.3.1



More information about the devel mailing list