diff options
author | amitkuma <amitkuma@redhat.com> | 2017-09-13 18:04:59 +0200 |
---|---|---|
committer | amitkuma <amitkuma@redhat.com> | 2017-09-14 14:10:41 +0200 |
commit | 2ae36e54f1cceb8ed28e237f7b6b430b652efd1f (patch) | |
tree | 8910ed5e93f7242ad975aca8ff5bcde740dee9e7 /src/librbd/Journal.cc | |
parent | Merge pull request #17366 from smithfarm/wip-21176 (diff) | |
download | ceph-2ae36e54f1cceb8ed28e237f7b6b430b652efd1f.tar.xz ceph-2ae36e54f1cceb8ed28e237f7b6b430b652efd1f.zip |
librbd: Initialization of class member variables
Fixes the coverity issues:
** 1402627 Uninitialized scalar field
CID 1402627 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member promotion_state is not
initialized in this constructor nor in any functions that it calls.
** 1402630 Uninitialized scalar field
CID 1402630 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_promotion_state is not
initialized in this constructor nor in any functions that it calls.
** 1402631 Uninitialized scalar field
CID 1402631 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_promotion_state is not
initialized in this constructor nor in any functions that it calls.
** 1402632 Uninitialized scalar field
CID 1402632 (#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.
Signed-off-by: Amit Kumar <amitkuma@redhat.com>
Diffstat (limited to 'src/librbd/Journal.cc')
-rw-r--r-- | src/librbd/Journal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index 37e84d7d421..c7b5e11f692 100644 --- a/src/librbd/Journal.cc +++ b/src/librbd/Journal.cc @@ -104,7 +104,7 @@ struct C_GetTagOwner : public Context { Journaler journaler; cls::journal::Client client; journal::ImageClientMeta client_meta; - uint64_t tag_tid; + uint64_t tag_tid = 0; journal::TagData tag_data; C_GetTagOwner(librados::IoCtx &io_ctx, const std::string &image_id, |