From: John Spray Date: Fri, 15 Aug 2014 12:09:48 +0000 (+0100) Subject: librados: fix uninitialized values in notify X-Git-Tag: v0.86~213^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f356d0bb5a8a44913e3d08cfa8e70ee0e7688f32;p=ceph.git librados: fix uninitialized values in notify Signed-off-by: John Spray --- diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc index 15e74e05947e..d25fcbae8afa 100644 --- a/src/librados/IoCtxImpl.cc +++ b/src/librados/IoCtxImpl.cc @@ -1092,8 +1092,8 @@ int librados::IoCtxImpl::notify(const object_t& oid, uint64_t ver, bufferlist& b // Construct WatchNotifyInfo Cond cond_all; Mutex mylock_all("IoCtxImpl::notify::mylock_all"); - bool done_all; - int r_notify; + bool done_all = false; + int r_notify = 0; WatchNotifyInfo *wc = new WatchNotifyInfo(this, oid); wc->notify_done = &done_all; wc->notify_lock = &mylock_all;