diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 2ced24f87bb..96b5cb305f8 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,