summaryrefslogtreecommitdiffstats
path: root/src/tools/cephfs/DataScan.h
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2016-02-23 19:18:48 +0100
committerSage Weil <sage@redhat.com>2016-11-09 20:45:22 +0100
commitfc97f3186d3ee25939e6dd863fa058c57198ac8e (patch)
tree1d9d22e706f2a3a450ed56792362b56cd91a2fea /src/tools/cephfs/DataScan.h
parentrgw/rgw_op.h: init scalar field in ctor (diff)
downloadceph-fc97f3186d3ee25939e6dd863fa058c57198ac8e.tar.xz
ceph-fc97f3186d3ee25939e6dd863fa058c57198ac8e.zip
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 <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/tools/cephfs/DataScan.h')
-rw-r--r--src/tools/cephfs/DataScan.h3
1 files changed, 2 insertions, 1 deletions
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() {}