From 61f640cf334dc8eaae4f67d03de3e12b9c1bf57c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 10 Mar 2014 19:27:59 +0100 Subject: [PATCH] IoCtxImpl: initialize last_objver with 0 CID 717219 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member "last_objver" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- src/librados/IoCtxImpl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc index e3e6620b2385..692596160b62 100644 --- a/src/librados/IoCtxImpl.cc +++ b/src/librados/IoCtxImpl.cc @@ -26,8 +26,8 @@ #define dout_prefix *_dout << "librados: " librados::IoCtxImpl::IoCtxImpl() : - ref_cnt(0), client(NULL), poolid(0), assert_ver(0), notify_timeout(30), - aio_write_list_lock("librados::IoCtxImpl::aio_write_list_lock"), + ref_cnt(0), client(NULL), poolid(0), assert_ver(0), last_objver(0), + notify_timeout(30), aio_write_list_lock("librados::IoCtxImpl::aio_write_list_lock"), aio_write_seq(0), lock(NULL), objecter(NULL) { } -- 2.47.3