From: Danny Al-Gaaf Date: Wed, 17 Sep 2014 16:56:00 +0000 (+0200) Subject: ErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR X-Git-Tag: v0.86~48 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a7482224c67fc101939807ffe91d8f262842ffe;p=ceph.git ErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR 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 (cherry picked from commit 2bb35bba995af1983a81669711fda7855e1ce532) --- diff --git a/src/erasure-code/lrc/ErasureCodeLrc.h b/src/erasure-code/lrc/ErasureCodeLrc.h index 4214cb63ba61..09e16536bbbd 100644 --- a/src/erasure-code/lrc/ErasureCodeLrc.h +++ b/src/erasure-code/lrc/ErasureCodeLrc.h @@ -73,7 +73,7 @@ public: vector ruleset_steps; ErasureCodeLrc() : - ruleset_root("default") + data_chunk_count(0), ruleset_root("default") { ruleset_steps.push_back(Step("chooseleaf", "host", 0)); }