From 49854811fa499c70ddbf5d7d4daf22c97796b98e Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Fri, 29 May 2020 22:51:45 +0400 Subject: Attempt fixing mroonga gcc 8 build failure Part of MDEV-19061 - table_share used for reading statistical tables is not protected --- storage/mroonga/mrn_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/mroonga/mrn_table.cpp b/storage/mroonga/mrn_table.cpp index 8653092e45f..8fd48ffca17 100644 --- a/storage/mroonga/mrn_table.cpp +++ b/storage/mroonga/mrn_table.cpp @@ -932,7 +932,7 @@ MRN_SHARE *mrn_get_share(const char *table_name, TABLE *table, int *error) share->wrap_key_info = NULL; share->wrap_primary_key = MAX_KEY; } - memcpy(wrap_table_share, table->s, sizeof(*wrap_table_share)); + *wrap_table_share= *table->s; mrn_init_sql_alloc(current_thd, &(wrap_table_share->mem_root)); wrap_table_share->keys = share->wrap_keys; wrap_table_share->key_info = share->wrap_key_info; -- cgit v1.2.1