Commit 66883ee0 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5674 Valgrind warnings "Conditional jump or move depends on uninitialised...

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)
parent eb9f422c
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment