From 0b85f09b9d3b7166d05c11a183ce012bbc3d1c3c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 19 Nov 2009 11:38:35 -0800 Subject: [PATCH] auth: initialize EntityName type in constructor --- src/auth/Auth.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/auth/Auth.h b/src/auth/Auth.h index 16b34b7c5c717..f55d432adee19 100644 --- a/src/auth/Auth.h +++ b/src/auth/Auth.h @@ -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); -- 2.39.5