]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw_cksum: zero-initialize GetObjAttrs integral members
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 12 Oct 2024 14:01:57 +0000 (10:01 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 8 Jan 2025 00:16:46 +0000 (19:16 -0500)
(code review)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_op.h

index 3d525b32c4ece4cb1aa4cd717c4889e082b74e4e..d131fdf0b2bf6eb4b9e8fdd883af8214aaa53468 100644 (file)
@@ -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