]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
automake cleanup: uninitialized version_t
authorRoald J. van Loon <roaldvanloon@gmail.com>
Fri, 30 Aug 2013 21:05:52 +0000 (23:05 +0200)
committerSage Weil <sage@inktank.com>
Sat, 31 Aug 2013 17:28:19 +0000 (10:28 -0700)
This sometimes gives a completely random uint64_t value, because it is
potentially used uninitialized.

Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
src/mds/mdstypes.h

index 5537407a75d5f5530192973c485db1ebf40455a6..4fcf584fb8ccc183a9447f65b694a20672e45501 100644 (file)
@@ -474,6 +474,7 @@ struct fnode_t {
   void decode(bufferlist::iterator& bl);
   void dump(Formatter *f) const;
   static void generate_test_instances(list<fnode_t*>& ls);
+  fnode_t() : version(0) {};
 };
 WRITE_CLASS_ENCODER(fnode_t)