diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc index 16db07af4c2..3bd423fa8c9 100644 --- a/sql/rpl_utility.cc +++ b/sql/rpl_utility.cc @@ -197,7 +197,7 @@ int compare_lengths(Field *field, enum_field_types source_type, uint16 metadata) */ uint32 table_def::calc_field_size(uint col, uchar *master_data) const { - uint32 length; + uint32 length= 0; switch (type(col)) { case MYSQL_TYPE_NEWDECIMAL: