]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: MDSAuthCaps: init "read" param in default constructor
authorGreg Farnum <greg@inktank.com>
Thu, 9 Oct 2014 17:37:21 +0000 (10:37 -0700)
committerGreg Farnum <greg@inktank.com>
Thu, 9 Oct 2014 17:42:58 +0000 (10:42 -0700)
CID 1244228:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/MDSAuthCaps.h: 29 in MDSCapSpec::MDSCapSpec()()

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mds/MDSAuthCaps.h

index 8312f73c669f07502a62d8d7a7984b8a3d322405..2878c79f852a53703aaa413198e526c27c210613 100644 (file)
@@ -26,7 +26,7 @@ struct MDSCapSpec {
   bool write;
   bool any;
 
-  MDSCapSpec() : write(false), any(false) {}
+  MDSCapSpec() : read(false), write(false), any(false) {}
   MDSCapSpec(bool r_, bool w_, bool a_) : read(r_), write(w_), any(a_) {}
 
   bool allow_all() const {return any;}