]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd,test: Initialize m_snap_list_ret,m_,value 17825/head
authoramitkuma <amitkuma@redhat.com>
Wed, 20 Sep 2017 12:00:39 +0000 (17:30 +0530)
committeramitkuma <amitkuma@redhat.com>
Wed, 20 Sep 2017 12:00:39 +0000 (17:30 +0530)
commit31d7a30d8b57a88bdcc6e2807834b576d8f25470
tree92b29fdffbef3b9dc393deb96f8e950cfab83c0d
parentf27251432a659c46bea31d0661b749336b3ffb76
librbd,test: Initialize m_snap_list_ret,m_,value

Fixes the coverity issues:

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

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

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

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/librbd/operation/ObjectMapIterate.cc
src/test/common/test_sharedptr_registry.cc
src/test/objectstore/BitAllocator_test.cc