From ea02dc37dc92613d2d35b9572e72c3b9ab6bbb69 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 17 Sep 2014 19:28:11 +0200 Subject: [PATCH] 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 --- src/erasure-code/lrc/ErasureCodeLrc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/erasure-code/lrc/ErasureCodeLrc.h b/src/erasure-code/lrc/ErasureCodeLrc.h index 09e16536bbbdb..333a2f2ab02e9 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)); } -- 2.39.5