From ed6134c0b0b928b5587290dadab051c078e1237e Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Sat, 12 Oct 2024 10:01:57 -0400 Subject: [PATCH] rgw_cksum: zero-initialize GetObjAttrs integral members (code review) Signed-off-by: Matt Benjamin --- src/rgw/rgw_op.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index 3d525b32c4e..d131fdf0b2b 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -1649,9 +1649,9 @@ class RGWGetObjAttrs : public RGWGetObj { protected: std::string version_id; std::string expected_bucket_owner; - int marker; - int max_parts; - uint16_t requested_attributes; + int marker{0}; + int max_parts{0}; + uint16_t requested_attributes{0}; #if 0 /* used to decrypt attributes for objects stored with SSE-C */ x-amz-server-side-encryption-customer-algorithm -- 2.39.5