Fixes the Coverity Scan Report:
CID
1396116: Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member create_date is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member s is not initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member store is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
string announce; // tracker
string origin; // origin
- time_t create_date; // time of the file created
+ time_t create_date{0}; // time of the file created
string comment; // comment
string create_by; // app name and version
string encoding; // if encode use gbk rather than gtf-8 use this field
bool is_torrent; // flag
bufferlist bl; // bufflist ready to send
- struct req_state *s;
- RGWRados *store;
+ struct req_state *s{nullptr};
+ RGWRados *store{nullptr};
SHA1 h;
TorrentBencode dencode;