From 98003440c2f8d20164a191ced1b7d92b283bb68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Mon, 20 Apr 2020 11:00:39 +0300 Subject: [PATCH] Initialize error variable to 0 in alter_table_close f9f33b85be6b5006f0ecd0de7961c71d415a9d73 introduced a potential use of unitialized value when the if condition is false. --- sql/sql_partition.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index 5d89307ba31..de2d5c2f253 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -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)