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.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52591%2Fhead;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 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 {