]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: Initializing members image,operation,journal 16934/head
authoramitkuma <amitkuma@redhat.com>
Wed, 9 Aug 2017 13:19:34 +0000 (18:49 +0530)
committeramitkuma <amitkuma@redhat.com>
Wed, 9 Aug 2017 13:19:34 +0000 (18:49 +0530)
commit233482cf708aa7b4723c529d387c4605bdf0722f
tree6a4457c21ee8e4c0ff2a202e6b67ef81b43dace5
parent2efc7e756ba6ad4749e5a59f7271af3b3c47aca6
librbd: Initializing members image,operation,journal

Fixes the coverity issues:

** 1398907 Uninitialized scalar field
CID 1398907 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member tag_tid is not initialized in
this constructor nor in any functions that it calls.

** 1398906 Uninitialized scalar field
22. uninit_member: Non-static class member m_r_saved is not initialized in
this constructor nor in any functions that it calls.
CID 1398906 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
24. uninit_member: Non-static class member m_mirror_mode is not initialized
in this constructor nor in any functions that it calls.

** 1399592 Uninitialized scalar field
2. uninit_member: Non-static class member m_order is not initialized in this
constructor nor in any functions that it calls.
4. uninit_member: Non-static class member m_size is not initialized in this
constructor nor in any functions that it calls.
6. uninit_member: Non-static class member m_features is not initialized in
this constructor nor in any functions that it calls.
8. uninit_member: Non-static class member m_incompatible_features is not
initialized in this constructor nor in any functions that it calls.
10. uninit_member: Non-static class member m_flags is not initialized in
this constructor nor in any functions that it calls.
CID 1399592 (#1-2 of 2): Uninitialized scalar field (UNINIT_CTOR)
12. uninit_member: Non-static class member m_exclusive_locked is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
src/librbd/Journal.cc
src/librbd/image/CreateRequest.h
src/librbd/image/RefreshRequest.h