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:
Jos Collin 2017-06-29 20:27:20 +05:30
parent a1aca827a8
commit 213db6e133

View File

@ -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) {}