From: Jos Collin Date: Thu, 29 Jun 2017 15:23:45 +0000 (+0530) Subject: rgw Initialize pointer field in RGWReadMDLogEntriesCR X-Git-Tag: v12.1.1~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c0112a7a55c06b2aa222640de1640381ba0dfa70;p=ceph.git 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 --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index bef949a53b0c4..2dce49fd89328 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,