summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2002-07-26 20:52:13 +0200
committerserg@sergbook.mysql.com <>2002-07-26 20:52:13 +0200
commitaa1edc610ef05ad9d7b08156cc0d6808797ae2f3 (patch)
tree03776a8f044e7c7205ba75d38115fba3b53c33fa /myisam
parent9961a57e909dceb7ee000f3f227d7fd9f176bd3f (diff)
downloadmariadb-git-aa1edc610ef05ad9d7b08156cc0d6808797ae2f3.tar.gz
rec_buff should be initialized
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c6
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;