]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: initialize EntityName type in constructor
authorSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 19:38:35 +0000 (11:38 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 20:41:04 +0000 (12:41 -0800)
src/auth/Auth.h

index 16b34b7c5c71787c2d5c24d6fdefeb7274f804d5..f55d432adee1947119a740ce16bf4cc94fe46575 100644 (file)
@@ -28,6 +28,8 @@ struct EntityName {
   uint32_t entity_type;
   string name;
 
+  EntityName() : entity_type(0) {}
+
   void encode(bufferlist& bl) const {
     ::encode(entity_type, bl);
     ::encode(name, bl);