Commit 98003440 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Initialize error variable to 0 in alter_table_close

f9f33b85 introduced a potential use of
unitialized value when the if condition is false.
parent d2f5e82f
...@@ -6783,7 +6783,7 @@ static bool alter_partition_lock_handling(ALTER_PARTITION_PARAM_TYPE *lpt) ...@@ -6783,7 +6783,7 @@ static bool alter_partition_lock_handling(ALTER_PARTITION_PARAM_TYPE *lpt)
static int alter_close_table(ALTER_PARTITION_PARAM_TYPE *lpt) static int alter_close_table(ALTER_PARTITION_PARAM_TYPE *lpt)
{ {
int error; int error= 0;
DBUG_ENTER("alter_close_table"); DBUG_ENTER("alter_close_table");
if (lpt->table->db_stat) if (lpt->table->db_stat)
......
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