]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs/DataScan.h: init scalar field in ctor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 23 Feb 2016 18:18:48 +0000 (19:18 +0100)
committerSage Weil <sage@redhat.com>
Wed, 9 Nov 2016 19:45:22 +0000 (14:45 -0500)
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>
src/tools/cephfs/DataScan.h

index c64de0ce8201774ba4c6e58555e180fb7e53e0be..462699d2224c86e7d73351159d65cf4446f4cb60 100644 (file)
@@ -91,7 +91,8 @@ class RecoveryDriver {
     }
 
     RecoveryDriver()
-      : force_corrupt(false)
+      : force_corrupt(false),
+       force_init(false)
     {}
 
     virtual ~RecoveryDriver() {}