]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/Watch.h: uninit var in ctor Watch
authorSamuel Just <sam.just@inktank.com>
Wed, 29 Aug 2012 23:43:02 +0000 (16:43 -0700)
committerSage Weil <sage@inktank.com>
Fri, 31 Aug 2012 20:11:36 +0000 (13:11 -0700)
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 <sam.just@inktank.com>
src/osd/Watch.h

index 8fdfbd710a8e143bad99f49c4ab87df490387b6c..cb48de4d426a7b4e644d3b55a860323186776e7b 100644 (file)
@@ -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 {