mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
rados: Initializing uninitialized pointer variables
Fixes the coverity issue: 1274326 Uninitialized pointer field 2. uninit_member: Non-static class member m_client is not initialized in this constructor nor in any functions that it calls. CID 1274326 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) 4. uninit_member: Non-static class member m_pool is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com
This commit is contained in:
parent
ddab8e0dc2
commit
6078f6923f
@ -78,8 +78,8 @@ protected:
|
||||
private:
|
||||
TestMemIoCtxImpl(const TestMemIoCtxImpl&);
|
||||
|
||||
TestMemRadosClient *m_client;
|
||||
TestMemCluster::Pool *m_pool;
|
||||
TestMemRadosClient *m_client = nullptr;
|
||||
TestMemCluster::Pool *m_pool = nullptr;
|
||||
|
||||
void append_clone(bufferlist& src, bufferlist* dest);
|
||||
size_t clip_io(size_t off, size_t len, size_t bl_len);
|
||||
|
Loading…
Reference in New Issue
Block a user