From: Jos Collin Date: Thu, 29 Jun 2017 14:57:20 +0000 (+0530) Subject: rgw: Initialize pointer field in ReadParams X-Git-Tag: v12.1.1~41^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=213db6e1331a47548e44cbb4198625fca8a4d3b4;p=ceph.git 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 --- diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index cafdd48a563f..86631926d42d 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -2669,7 +2669,7 @@ public: } stat_params; struct ReadParams { - rgw_cache_entry_info *cache_info; + rgw_cache_entry_info *cache_info{nullptr}; map *attrs; ReadParams() : attrs(NULL) {}