summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2023-02-20 14:05:46 +0300
committerNikita Malyavin <nikitamalyavin@gmail.com>2023-05-05 15:59:20 +0300
commite6b134552b672f33940ebd1b9853d0365b7fae69 (patch)
treef509260ee782ef0ec24179058e558cf0308c908b
parent9bca4c0ff10f8edf22312ab1e4bd81da44d4bf9b (diff)
downloadmariadb-git-e6b134552b672f33940ebd1b9853d0365b7fae69.tar.gz
fix Run-Time Check Failure on Windows
-rw-r--r--sql/log_event_server.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log_event_server.cc b/sql/log_event_server.cc
index 13e68a595b0..55d18d66139 100644
--- a/sql/log_event_server.cc
+++ b/sql/log_event_server.cc
@@ -7115,7 +7115,7 @@ int Rows_log_event::find_key(const rpl_group_info *rgi)
{
DBUG_ASSERT(m_table);
RPL_TABLE_LIST *tl= (RPL_TABLE_LIST*)m_table->pos_in_table_list;
- uint i, best_key_nr, best_usable_key_parts;
+ uint i, best_key_nr= 0, best_usable_key_parts= 0;
KEY *key;
ulong UNINIT_VAR(best_rec_per_key), tmp;
DBUG_ENTER("Rows_log_event::find_key");