From dd4c094652ef907af66704a4b02ed26ae1a79986 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Mon, 20 Dec 2010 10:00:14 +0100 Subject: Bug #59021 Valgrind warning in key_unpack() Introduced by fix for Bug#57687 sql/sql_select.cc: Add missing initialization of key_part_info->key_part_flag --- sql/sql_select.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_select.cc') diff --git a/sql/sql_select.cc b/sql/sql_select.cc index e14b872d18e..3b8dc2e170a 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -10720,6 +10720,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List &fields, (ha_base_keytype) key_part_info->type == HA_KEYTYPE_VARTEXT1 || (ha_base_keytype) key_part_info->type == HA_KEYTYPE_VARTEXT2) ? 0 : FIELDFLAG_BINARY; + key_part_info->key_part_flag= 0; if (!using_unique_constraint) { cur_group->buff=(char*) group_buff; -- cgit v1.2.1