]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MOSDRepOpReply.h: init some vars of MOSDRepOpReply in ctor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jun 2015 10:39:44 +0000 (12:39 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:44 +0000 (10:50 +0200)
Fix for:

CID 1262115 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member map_epoch is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member ack_type is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member result is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/messages/MOSDRepOpReply.h

index 957502dddddfba1e39f8f9c85adaa1b11e786c38..f0faa4c022994b6a93fad9e47da134674b85089b 100644 (file)
@@ -94,7 +94,9 @@ public:
     result(result_) {
     set_tid(req->get_tid());
   }
-  MOSDRepOpReply() : Message(MSG_OSD_REPOPREPLY) {}
+  MOSDRepOpReply() 
+    : Message(MSG_OSD_REPOPREPLY), map_epoch(0),  
+      ack_type(0), result(0) {}
 private:
   ~MOSDRepOpReply() {}