diff --git a/db/repair.cc b/db/repair.cc index 6e4f0e372..f7010836e 100644 --- a/db/repair.cc +++ b/db/repair.cc @@ -449,7 +449,7 @@ class Repairer { AddColumnFamily(props->column_family_name, t->column_family_id); } } - ColumnFamilyData* cfd; + ColumnFamilyData* cfd = nullptr; if (status.ok()) { cfd = vset_.GetColumnFamilySet()->GetColumnFamily(t->column_family_id); if (cfd->GetName() != props->column_family_name) {