rgw Initialize pointer field in RGWReadMDLogEntriesCR

Fixes the Coverity Scan Report:
CID 1396155: Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member req 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:53:45 +05:30
parent f1580a7c23
commit c0112a7a55

View File

@ -414,7 +414,7 @@ class RGWReadMDLogEntriesCR : public RGWSimpleCoroutine {
list<cls_log_entry> *entries;
bool *truncated;
RGWAsyncReadMDLogEntries *req;
RGWAsyncReadMDLogEntries *req{nullptr};
public:
RGWReadMDLogEntriesCR(RGWMetaSyncEnv *_sync_env, RGWMetadataLog* mdlog,