From: Danny Al-Gaaf Date: Mon, 10 Mar 2014 18:27:59 +0000 (+0100) Subject: IoCtxImpl: initialize last_objver with 0 X-Git-Tag: v0.79~150^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=61f640cf334dc8eaae4f67d03de3e12b9c1bf57c;p=ceph.git 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 --- diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc index e3e6620b238..692596160b6 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) { }