From fc97f3186d3ee25939e6dd863fa058c57198ac8e Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 19:18:48 +0100 Subject: tools/cephfs/DataScan.h: init scalar field in ctor Fix for: CID 1313449 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member force_init is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- src/tools/cephfs/DataScan.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools/cephfs/DataScan.h') diff --git a/src/tools/cephfs/DataScan.h b/src/tools/cephfs/DataScan.h index c64de0ce820..462699d2224 100644 --- a/src/tools/cephfs/DataScan.h +++ b/src/tools/cephfs/DataScan.h @@ -91,7 +91,8 @@ class RecoveryDriver { } RecoveryDriver() - : force_corrupt(false) + : force_corrupt(false), + force_init(false) {} virtual ~RecoveryDriver() {} -- cgit v1.2.3