diff options
author | amitkuma <amitkuma@redhat.com> | 2017-08-07 12:59:01 +0200 |
---|---|---|
committer | amitkuma <amitkuma@redhat.com> | 2017-08-31 16:24:45 +0200 |
commit | 4bca8f8013c0da31edd1cbbc602d1138f3b6a1ec (patch) | |
tree | 91d58bdc004960bc185183a0152f7ecde929eead /src/rgw/rgw_realm_watcher.h | |
parent | Merge pull request #16847 from amitkumar50/cov-1054870 (diff) | |
download | ceph-4bca8f8013c0da31edd1cbbc602d1138f3b6a1ec.tar.xz ceph-4bca8f8013c0da31edd1cbbc602d1138f3b6a1ec.zip |
rgw: Initializes uninitialized members of rgw
Fixes the coverity issues:
** 1352181 Uninitialized scalar field
2. uninit_member: Non-static class member field fh_hk.bucket is
not initialized in this constructor nor in any functions that it calls.
CID 1352181 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
4. uninit_member: Non-static class member field fh_hk.object is
not initialized in this constructor nor in any functions that it calls.
** 1353424 Uninitialized scalar field
CID 1353424 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
5. uninit_member: Non-static class member watch_handle is not initialized
in this constructor nor in any functions that it calls.
** 1355240 Uninitialized scalar field
CID 1355240 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member index_type 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/rgw/rgw_realm_watcher.h')
-rw-r--r-- | src/rgw/rgw_realm_watcher.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_realm_watcher.h b/src/rgw/rgw_realm_watcher.h index 5c1240bbb4f..7ef40f458a0 100644 --- a/src/rgw/rgw_realm_watcher.h +++ b/src/rgw/rgw_realm_watcher.h @@ -56,7 +56,7 @@ class RGWRealmWatcher : public librados::WatchCtx2 { /// so that we don't miss notifications during realm reconfiguration librados::Rados rados; librados::IoCtx pool_ctx; - uint64_t watch_handle; + uint64_t watch_handle = 0; std::string watch_oid; int watch_start(RGWRealm& realm); |