1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Initialize error variable to 0 in alter_table_close

f9f33b85be introduced a potential use of
unitialized value when the if condition is false.
This commit is contained in:
Vicențiu Ciorbaru
2020-04-20 11:00:39 +03:00
parent d2f5e82f00
commit 98003440c2

View File

@ -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)
{
int error;
int error= 0;
DBUG_ENTER("alter_close_table");
if (lpt->table->db_stat)