Commit 59e7289b authored by Marko Mäkelä's avatar Marko Mäkelä

Fix g++-14 -Wmaybe-uninitialized

parent 2a8c4ccf
...@@ -222,7 +222,7 @@ static int fake_rotate_event(binlog_send_info *info, ulonglong position, ...@@ -222,7 +222,7 @@ static int fake_rotate_event(binlog_send_info *info, ulonglong position,
char* p = info->log_file_name+dirname_length(info->log_file_name); char* p = info->log_file_name+dirname_length(info->log_file_name);
uint ident_len = (uint) strlen(p); uint ident_len = (uint) strlen(p);
String *packet= info->packet; String *packet= info->packet;
ha_checksum crc; ha_checksum crc= 0;
/* reset transmit packet for the fake rotate event below */ /* reset transmit packet for the fake rotate event below */
if (reset_transmit_packet(info, info->flags, &ev_offset, &info->errmsg)) if (reset_transmit_packet(info, info->flags, &ev_offset, &info->errmsg))
...@@ -263,7 +263,7 @@ static int fake_gtid_list_event(binlog_send_info *info, ...@@ -263,7 +263,7 @@ static int fake_gtid_list_event(binlog_send_info *info,
{ {
my_bool do_checksum; my_bool do_checksum;
int err; int err;
ha_checksum crc; ha_checksum crc= 0;
char buf[128]; char buf[128];
String str(buf, sizeof(buf), system_charset_info); String str(buf, sizeof(buf), system_charset_info);
String* packet= info->packet; String* packet= info->packet;
......
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