diff options
author | monty@mysql.com <> | 2005-10-13 19:40:46 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-10-13 19:40:46 +0300 |
commit | 49a30ef51397c810055c0d6e7db191e67b42c86d (patch) | |
tree | 1c1d39c480d1b8421f41d2335a741a0045805630 /sql/unireg.cc | |
parent | 5513ab69b76add2457b5288849484460fae78504 (diff) | |
download | mariadb-git-49a30ef51397c810055c0d6e7db191e67b42c86d.tar.gz |
Fixes during review of new pushed code
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index 3420e359c27..065f8583f71 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -119,10 +119,10 @@ bool mysql_create_frm(THD *thd, my_string file_name, reclength=uint2korr(forminfo+266); /* Calculate extra data segment length */ - str_db_type.str= (char *)ha_get_storage_engine(create_info->db_type); + str_db_type.str= (char *) ha_get_storage_engine(create_info->db_type); str_db_type.length= strlen(str_db_type.str); - create_info->extra_size= 2 + str_db_type.length; - create_info->extra_size+= create_info->connect_string.length + 2; + create_info->extra_size= (2 + str_db_type.length + + 2 + create_info->connect_string.length); if ((file=create_frm(thd, file_name, db, table, reclength, fileinfo, create_info, keys)) < 0) |