From: Ronen Friedman Date: Sat, 22 Jul 2023 15:27:55 +0000 (-0500) Subject: cephx: initializing two member variables in the ctors X-Git-Tag: v19.0.0~790^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=56f4535bb6b614d2cc18a9761614577ec82c9ff8;p=ceph.git cephx: initializing two member variables in the ctors Eliminating compiler warnings. Signed-off-by: Ronen Friedman --- diff --git a/src/auth/cephx/CephxProtocol.h b/src/auth/cephx/CephxProtocol.h index 8a28b7306233..aabfaaad10c9 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 {