From fd74a0da30c43f542180687242f8bf919cc0f152 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 21 Jan 2008 18:51:30 +0100 Subject: [PATCH] fix for compiler warning sql/sql_table.cc: initialize variables used in 'err:' before going to err. --- sql/sql_table.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 06cb8ef161c..839ea6b7245 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -6928,7 +6928,7 @@ copy_data_between_tables(TABLE *from,TABLE *to, { int error= 1, errpos= 0; Copy_field *copy= NULL, *copy_end; - ulong found_count,delete_count; + ulong found_count= 0, delete_count= 0; THD *thd= current_thd; uint length= 0; SORT_FIELD *sortorder; @@ -6996,8 +6996,6 @@ copy_data_between_tables(TABLE *from,TABLE *to, } - found_count=delete_count=0; - if (order) { if (to->s->primary_key != MAX_KEY && to->file->primary_key_is_clustered())