From 56f4535bb6b614d2cc18a9761614577ec82c9ff8 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Sat, 22 Jul 2023 10:27:55 -0500 Subject: [PATCH] cephx: initializing two member variables in the ctors Eliminating compiler warnings. Signed-off-by: Ronen Friedman --- src/auth/cephx/CephxProtocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/cephx/CephxProtocol.h b/src/auth/cephx/CephxProtocol.h index 8a28b7306233c..aabfaaad10c93 100644 --- a/src/auth/cephx/CephxProtocol.h +++ b/src/auth/cephx/CephxProtocol.h @@ -379,7 +379,7 @@ struct CephXServiceTicketInfo { WRITE_CLASS_ENCODER(CephXServiceTicketInfo) struct CephXAuthorizeChallenge : public AuthAuthorizerChallenge { - uint64_t server_challenge; + uint64_t server_challenge = 0; void encode(ceph::buffer::list& bl) const { using ceph::encode; __u8 struct_v = 1; @@ -396,7 +396,7 @@ struct CephXAuthorizeChallenge : public AuthAuthorizerChallenge { WRITE_CLASS_ENCODER(CephXAuthorizeChallenge) struct CephXAuthorize { - uint64_t nonce; + uint64_t nonce = 0; bool have_challenge = false; uint64_t server_challenge_plus_one = 0; void encode(ceph::buffer::list& bl) const { -- 2.39.5