Fixes the Coverity Scan Report:
CID
1352183: Uninitialized pointer field (UNINIT_CTOR)
4. uninit_member: Non-static class member req is not initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member op_type is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
struct req_state {
CephContext *cct;
rgw::io::BasicClient *cio;
- RGWRequest *req; /// XXX: re-remove??
+ RGWRequest *req{nullptr}; /// XXX: re-remove??
http_op op;
- RGWOpType op_type;
+ RGWOpType op_type{};
bool content_started;
int format;
ceph::Formatter *formatter;