From: Loic Dachary Date: Thu, 4 Sep 2014 08:14:03 +0000 (+0200) Subject: erasure-code: warning fix X-Git-Tag: v0.86~145^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2393%2Fhead;p=ceph.git erasure-code: warning fix Signed-off-by: Loic Dachary --- diff --git a/src/erasure-code/lrc/ErasureCodeLrc.cc b/src/erasure-code/lrc/ErasureCodeLrc.cc index caa78960504..249f9f7a5ac 100644 --- a/src/erasure-code/lrc/ErasureCodeLrc.cc +++ b/src/erasure-code/lrc/ErasureCodeLrc.cc @@ -443,7 +443,7 @@ int ErasureCodeLrc::parse_ruleset_step(string description_string, json_spirit::write(description, json_string); string op; string type; - int n; + int n = 0; int position = 0; for (vector::iterator i = description.begin(); i != description.end();