MDEV-5674 Valgrind warnings "Conditional jump or move depends on uninitialised value" in create_sort_index with small sort_buffer_size
*found_rows wasn't initialized when filesort() failed (it didn't matter, but valgrind was unhappy)
This commit is contained in:
parent
eb9f422c43
commit
66883ee08d
@ -188,6 +188,7 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
|
||||
my_b_clear(&buffpek_pointers);
|
||||
buffpek=0;
|
||||
error= 1;
|
||||
*found_rows= HA_POS_ERROR;
|
||||
|
||||
param.init_for_filesort(sortlength(thd, sortorder, s_length,
|
||||
&multi_byte_charset),
|
||||
|
Loading…
x
Reference in New Issue
Block a user