]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
IoCtxImpl: initialize last_objver with 0
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 10 Mar 2014 18:27:59 +0000 (19:27 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 10 Mar 2014 18:27:59 +0000 (19:27 +0100)
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 <danny.al-gaaf@bisect.de>
src/librados/IoCtxImpl.cc

index e3e6620b23854c27b68985d7e924be8c55f80594..692596160b622f1d6bed2bde172a3e87ac679e37 100644 (file)
@@ -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)
 {
 }