summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/table.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 7f80b95c954..c74f72e2539 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -1377,7 +1377,9 @@ int open_table_from_share(THD *thd, TABLE_SHARE *share, const char *alias,
if (!(record= (byte*) alloc_root(&outparam->mem_root,
share->rec_buff_length * records)))
goto err; /* purecov: inspected */
-
+#ifdef HAVE_purify
+ bzero(record, share->rec_buff_length * records);
+#endif
if (records == 0)
{
/* We are probably in hard repair, and the buffers should not be used */