diff --git a/sql/opt_range.cc b/sql/opt_range.cc index b81a083d9b3..a0b7c1a52d7 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -713,7 +713,8 @@ SQL_SELECT::~SQL_SELECT() QUICK_SELECT_I::QUICK_SELECT_I() :max_used_key_length(0), - used_key_parts(0) + used_key_parts(0), + records(0) {} QUICK_RANGE_SELECT::QUICK_RANGE_SELECT(THD *thd, TABLE *table, uint key_nr,