]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/AioRequest.h: fix UNINIT_CTOR
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 14 Mar 2015 00:16:31 +0000 (01:16 +0100)
committerJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2015 20:35:20 +0000 (16:35 -0400)
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>
(cherry picked from commit 48f18ea0e1c4c6de1921ea2359448deb761461e7)

src/librbd/AioRequest.h

index bac3b4706c9e317415527d1a3f197c0aad0dd21a..924c00602fdfd98cedca4d7c40df1c474101d84f 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() {}