summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-11-12 10:16:28 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-12 10:16:28 +0200
commit4b773ca2989218daf02df2d1cc502869e54dc1d8 (patch)
tree71d100759aa685dfaf0d7303d46fcc75dea633b5
parentb290ef8c76e2d7dfbae7a85766694a6fd4648eac (diff)
downloadmariadb-git-4b773ca2989218daf02df2d1cc502869e54dc1d8.tar.gz
MDEV-13564 clean-up: Replace memset() with init()
-rw-r--r--storage/innobase/handler/ha_innodb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 638b8d73770..be91befcf1a 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -13455,7 +13455,7 @@ int ha_innobase::truncate()
dict_table_t* ib_table = m_prebuilt->table;
const time_t update_time = ib_table->update_time;
const ulint stored_lock = m_prebuilt->stored_select_lock_type;
- memset(&info, 0, sizeof info);
+ info.init();
update_create_info_from_table(&info, table);
if (dict_table_is_temporary(ib_table)) {