From 66883ee08d6ea4f96cb4473181508b511ece39f5 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 2 Mar 2014 15:54:57 +0100 Subject: [PATCH] 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) --- sql/filesort.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/filesort.cc b/sql/filesort.cc index 9f178938f24..12b9bb5aadc 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -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),