diff --git a/src/erasure-code/clay/ErasureCodeClay.cc b/src/erasure-code/clay/ErasureCodeClay.cc index 1e5a517dee8..7162cecbd9f 100644 --- a/src/erasure-code/clay/ErasureCodeClay.cc +++ b/src/erasure-code/clay/ErasureCodeClay.cc @@ -507,7 +507,7 @@ int ErasureCodeClay::repair_one_lost_chunk(map &recovered_data, } } - int lost_chunk; + int lost_chunk = 0; int count = 0; for ([[maybe_unused]] auto& [node, bl] : recovered_data) { lost_chunk = node;