]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/AioRequest.h: fix UNINIT_CTOR 4000/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 14 Mar 2015 00:16:31 +0000 (01:16 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 17 Mar 2015 08:19:40 +0000 (09:19 +0100)
Fix for:

CID 1274319: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member m_object_state 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/librbd/AioRequest.h

index 60be8fc978eed648ef1b02e2c6de17c409189358..eda9a84a9c0b193d4ecd2c8aed85aae359fdbf92 100644 (file)
@@ -229,7 +229,8 @@ namespace librbd {
                      object_no, 0, 0,
                      objectx, object_overlap,
                      snapc, snap_id, completion,
-                     true) {
+                     true),
+        m_object_state(OBJECT_NONEXISTENT) {
     }
     virtual ~AioRemove() {}