diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 6fde16d3049236dd559630ca1ec7b85f3e9e8175..c04b1f5ae38aa1ea3af7c0e4f27bbcdced804b8e 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -2433,6 +2433,7 @@ inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
   table->tablenr= tablenr;
   table->map= (table_map) 1 << tablenr;
   table->force_index= table_list->force_index;
+  table->force_index_order= table->force_index_group= 0;
   table->covering_keys= table->s->keys_for_keyread;
   table->merge_keys.clear_all();
 }