diff options
author | unknown <serg@sergbook.mysql.com> | 2002-07-26 20:52:13 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2002-07-26 20:52:13 +0200 |
commit | 4906479f3dc69db59745f4d5f7987b1c9ef9e1dd (patch) | |
tree | 03776a8f044e7c7205ba75d38115fba3b53c33fa /myisam | |
parent | 826a23b2ef2cc4d7188603081bc99d7a38c351d6 (diff) | |
download | mariadb-git-4906479f3dc69db59745f4d5f7987b1c9ef9e1dd.tar.gz |
rec_buff should be initialized
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_check.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 15c9a5ad9de..ee1c2d64ea1 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -1145,7 +1145,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info, goto err; info->opt_flag|=WRITE_CACHE_USED; if (!(sort_param.record=(byte*) my_malloc((uint) share->base.pack_reclength, - MYF(0)))) + MYF(0))) || + !mi_alloc_rec_buff(info, -1, &sort_param.rec_buff)) { mi_check_print_error(param,"Not enough memory for extra record"); goto err; @@ -1809,7 +1810,8 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info, info->rec_cache.file=info->dfile; /* for sort_delete_record */ if (!(sort_param.record=(byte*) my_malloc((uint) share->base.pack_reclength, - MYF(0)))) + MYF(0))) || + !mi_alloc_rec_buff(info, -1, &sort_param.rec_buff)) { mi_check_print_error(param,"Not enough memory for extra record"); goto err; |