]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 17 Sep 2014 16:56:00 +0000 (18:56 +0200)
committerSage Weil <sage@redhat.com>
Fri, 19 Sep 2014 18:34:55 +0000 (11:34 -0700)
CID 1238903 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member data_chunk_count is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 2bb35bba995af1983a81669711fda7855e1ce532)

src/erasure-code/lrc/ErasureCodeLrc.h

index 4214cb63ba6106ecbfabe6f5bb5aa0d134005c86..09e16536bbbdb1c23eea673fe4a0f86453084064 100644 (file)
@@ -73,7 +73,7 @@ public:
   vector<Step> ruleset_steps;
 
   ErasureCodeLrc() :
-    ruleset_root("default")
+    data_chunk_count(0), ruleset_root("default")
   {
     ruleset_steps.push_back(Step("chooseleaf", "host", 0));
   }