From: Danny Al-Gaaf Date: Wed, 17 Sep 2014 17:28:11 +0000 (+0200) Subject: ErasureCodeLrc.h: fix UNINIT_CTOR X-Git-Tag: v0.88~166^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea02dc37dc92613d2d35b9572e72c3b9ab6bbb69;p=ceph.git ErasureCodeLrc.h: fix UNINIT_CTOR 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 --- diff --git a/src/erasure-code/lrc/ErasureCodeLrc.h b/src/erasure-code/lrc/ErasureCodeLrc.h index 09e16536bbbd..333a2f2ab02e 100644 --- a/src/erasure-code/lrc/ErasureCodeLrc.h +++ b/src/erasure-code/lrc/ErasureCodeLrc.h @@ -73,7 +73,7 @@ public: vector 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)); }