From 1de23b5d9d1083dfc3b08718e01be14db44a5258 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 18:52:27 +0100 Subject: [PATCH] osd/Watch.cc: init NotifyTimeoutCB::canceled in constructor with false Initialize NotifyTimeoutCB::canceled in the constructor with false as already done in onter cases. Signed-off-by: Danny Al-Gaaf --- src/osd/Watch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/Watch.cc b/src/osd/Watch.cc index 1ee5f35b5e34..07650ac470c4 100644 --- a/src/osd/Watch.cc +++ b/src/osd/Watch.cc @@ -71,7 +71,7 @@ class NotifyTimeoutCB : public CancelableContext { NotifyRef notif; bool canceled; // protected by notif lock public: - NotifyTimeoutCB(NotifyRef notif) : notif(notif) {} + NotifyTimeoutCB(NotifyRef notif) : notif(notif), canceled(false) {} void finish(int) { notif->osd->watch_lock.Unlock(); notif->lock.Lock(); -- 2.47.3