]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: fix uninitialized values in notify
authorJohn Spray <john.spray@redhat.com>
Fri, 15 Aug 2014 12:09:48 +0000 (13:09 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:34:19 +0000 (01:34 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/librados/IoCtxImpl.cc

index 15e74e05947e84596ab4c86a875956b2c7769a75..d25fcbae8afa8ea7d80b84ab55e3706bc2a9dce7 100644 (file)
@@ -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;