From: Samuel Just Date: Wed, 29 Aug 2012 23:43:02 +0000 (-0700) Subject: osd/Watch.h: uninit var in ctor Watch X-Git-Tag: v0.53~229^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84216d595e627c998242b9db9c576cf30e64b6ef;p=ceph.git osd/Watch.h: uninit var in ctor Watch CID 717345: Uninitialized pointer field (UNINIT_CTOR)At (8): Non-static class member "obc" is not initialized in this constructor nor in any functions that it calls. At (2): Non-static class member "id" is not initialized in this constructor nor in any functions that it calls. At (4): Non-static class member "reply" is not initialized in this constructor nor in any functions that it calls. At (6): Non-static class member "timeout" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Samuel Just --- diff --git a/src/osd/Watch.h b/src/osd/Watch.h index 8fdfbd710a8e1..cb48de4d426a7 100644 --- a/src/osd/Watch.h +++ b/src/osd/Watch.h @@ -49,7 +49,9 @@ public: watchers[name] = state; } - Notification(entity_name_t& n, OSD::Session *s, uint64_t c, bufferlist& b) : name(n), session(s), cookie(c), bl(b) { } + Notification(entity_name_t& n, OSD::Session *s, uint64_t c, bufferlist& b) + : name(n), id(0), session(s), cookie(c), reply(0), timeout(0), + obc(0), bl(b) { } }; class C_NotifyTimeout : public Context {