]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ErasureCodeLrc.h: fix UNINIT_CTOR
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 17 Sep 2014 17:28:11 +0000 (19:28 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 19 Sep 2014 16:27:14 +0000 (18:27 +0200)
Fix Coverity issue, preinit with 0:

uninit_member: Non-static class member 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>
src/erasure-code/lrc/ErasureCodeLrc.h

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