summaryrefslogtreecommitdiff
path: root/storage/maria
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-06-16 18:52:46 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-06-16 18:52:46 +0300
commit7ab7abdb51ab88664f12f1a7be3730aaa0a950db (patch)
tree56746cc0169a868a15f144b52ad5f486726d314d /storage/maria
parentb644661e5d2fb514d373fe533cd7e0131bae54a0 (diff)
downloadmariadb-git-7ab7abdb51ab88664f12f1a7be3730aaa0a950db.tar.gz
Fix compilation failure when compiling with std=c90
Change variable declaration to be before any other statements.
Diffstat (limited to 'storage/maria')
-rw-r--r--storage/maria/ma_sort.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/maria/ma_sort.c b/storage/maria/ma_sort.c
index 3180118a155..a95f9bb7ddb 100644
--- a/storage/maria/ma_sort.c
+++ b/storage/maria/ma_sort.c
@@ -335,15 +335,14 @@ err:
static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param)
{
- DBUG_ENTER("_ma_thr_find_all_keys");
- DBUG_PRINT("enter", ("master: %d", sort_param->master));
-
my_bool error= FALSE;
ulonglong memavl, old_memavl;
uint UNINIT_VAR(keys), idx;
uint sort_length;
uint maxbuffer;
uchar **sort_keys= NULL;
+ DBUG_ENTER("_ma_thr_find_all_keys");
+ DBUG_PRINT("enter", ("master: %d", sort_param->master));
if (sort_param->sort_info->got_error)
DBUG_RETURN(TRUE);