Commit e9f1d8da authored by Marko Mäkelä's avatar Marko Mäkelä

Fix warnings about possibly uninitialized variables

parent 05855402
......@@ -965,7 +965,7 @@ buf_flush_init_for_writing(
}
}
uint32_t checksum;
uint32_t checksum = BUF_NO_CHECKSUM_MAGIC;
switch (srv_checksum_algorithm_t(srv_checksum_algorithm)) {
case SRV_CHECKSUM_ALGORITHM_INNODB:
......@@ -988,7 +988,6 @@ buf_flush_init_for_writing(
break;
case SRV_CHECKSUM_ALGORITHM_NONE:
case SRV_CHECKSUM_ALGORITHM_STRICT_NONE:
checksum = BUF_NO_CHECKSUM_MAGIC;
mach_write_to_4(page + FIL_PAGE_SPACE_OR_CHKSUM,
checksum);
break;
......
......@@ -6981,6 +6981,7 @@ dict_foreign_qualify_index(
}
if (dict_col_is_virtual(field->col)) {
col_name = "";
for (ulint j = 0; j < table->n_v_def; j++) {
col_name = dict_table_get_v_col_name(table, j);
if (innobase_strcasecmp(field->name,col_name) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment