From 213db6e1331a47548e44cbb4198625fca8a4d3b4 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 29 Jun 2017 20:27:20 +0530 Subject: [PATCH] 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 --- src/rgw/rgw_rados.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index cafdd48a563..86631926d42 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) {}