summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-11-08 20:51:31 +0300
committerSergey Petrunya <psergey@askmonty.org>2010-11-08 20:51:31 +0300
commit6bed7362146f3f7fe41f68ac408609f4fc2a3ef8 (patch)
tree4d1ee99a3e949787e4589645acd5ecbcdea742fe
parent47b2a5f879e75ad5a36878a180368d03f7fff997 (diff)
downloadmariadb-git-6bed7362146f3f7fe41f68ac408609f4fc2a3ef8.tar.gz
Fix buildbot errors: rec_per_key_part can be 0 if re-opening
-rw-r--r--storage/myisam/mi_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/mi_open.c b/storage/myisam/mi_open.c
index 994df663d4a..59bf36b3cb2 100644
--- a/storage/myisam/mi_open.c
+++ b/storage/myisam/mi_open.c
@@ -669,7 +669,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
pthread_mutex_unlock(&THR_LOCK_myisam);
bzero(info.buff, share->base.max_key_block_length * 2);
- my_free(rec_per_key_part, MYF(0));
+ my_free(rec_per_key_part, MYF(MY_ALLOW_ZERO_PTR));
if (myisam_log_file >= 0)
{