From c0112a7a55c06b2aa222640de1640381ba0dfa70 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 29 Jun 2017 20:53:45 +0530 Subject: [PATCH] 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 --- src/rgw/rgw_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index bef949a53b0c..2dce49fd8932 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -414,7 +414,7 @@ class RGWReadMDLogEntriesCR : public RGWSimpleCoroutine { list *entries; bool *truncated; - RGWAsyncReadMDLogEntries *req; + RGWAsyncReadMDLogEntries *req{nullptr}; public: RGWReadMDLogEntriesCR(RGWMetaSyncEnv *_sync_env, RGWMetadataLog* mdlog, -- 2.47.3