mirror of
https://github.com/ceph/ceph
synced 2025-01-31 15:32:38 +00:00
rgw: Initialize pointer field in ReadParams
Fixes the Coverity Scan Report: CID 1353428: Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member cache_info is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin <jcollin@redhat.com>
This commit is contained in:
parent
a1aca827a8
commit
213db6e133
@ -2669,7 +2669,7 @@ public:
|
||||
} stat_params;
|
||||
|
||||
struct ReadParams {
|
||||
rgw_cache_entry_info *cache_info;
|
||||
rgw_cache_entry_info *cache_info{nullptr};
|
||||
map<string, bufferlist> *attrs;
|
||||
|
||||
ReadParams() : attrs(NULL) {}
|
||||
|
Loading…
Reference in New Issue
Block a user