Merge pull request #3707 from dachary/wip-erasure-code-uninitialized

erasure-code: initialize all data members

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Loic Dachary 2015-02-12 11:06:41 +01:00
commit f53daa1c06
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,9 @@ public:
ErasureCodeIsa(const char *_technique,
ErasureCodeIsaTableCache &_tcache) :
k(0),
m(0),
w(0),
tcache(_tcache),
technique(_technique),
ruleset_root("default"),

View File

@ -34,8 +34,11 @@ public:
bool per_chunk_alignment;
ErasureCodeJerasure(const char *_technique) :
k(0),
DEFAULT_K(2),
m(0),
DEFAULT_M(1),
w(0),
DEFAULT_W(8),
technique(_technique),
ruleset_root("default"),