From f0f0d63cee624d7c57c27e18466fcac98ad45eea Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 29 Jun 2017 20:11:29 +0530 Subject: [PATCH] rgw: Initialize pointer field in RGWLibFS Fixes the Coverity Scan Report: CID 1352180 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member field fs.rgw is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- src/rgw/rgw_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 852e7c3801e..495af90e2fe 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -741,7 +741,7 @@ namespace rgw { class RGWLibFS { CephContext* cct; - struct rgw_fs fs; + struct rgw_fs fs{}; RGWFileHandle root_fh; rgw_fh_callback_t invalidate_cb; void *invalidate_arg; -- 2.39.5