diff --git a/sql/table.cc b/sql/table.cc index 9177d1e38f6..3bc1fee273b 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -4454,7 +4454,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl) DBUG_ASSERT(key_read == 0); /* mark the record[0] uninitialized */ - TRASH(record[0], s->reclength); + TRASH_ALLOC(record[0], s->reclength); /* Initialize the null marker bits, to ensure that if we are doing a read