Commit 3e50b4ec authored by Monty's avatar Monty

Fixed (wrong) compiler warning about uninitialized memory

parent 376ca2f6
...@@ -315,6 +315,7 @@ static void convert_field(Field *f, Field *result_field, Field *conv_field) ...@@ -315,6 +315,7 @@ static void convert_field(Field *f, Field *result_field, Field *conv_field)
@retval HA_ERR_CORRUPT_EVENT @retval HA_ERR_CORRUPT_EVENT
Found error when trying to unpack fields. Found error when trying to unpack fields.
*/ */
int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt, int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
uchar const *const row_data, MY_BITMAP const *cols, uchar const *const row_data, MY_BITMAP const *cols,
uchar const **const current_row_end, uchar const **const current_row_end,
...@@ -349,7 +350,7 @@ int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt, ...@@ -349,7 +350,7 @@ int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
st.next_null_byte(); st.next_null_byte();
if (!rpl_data.is_online_alter()) if (!rpl_data.is_online_alter())
{ {
Field *result_field; Field *result_field= 0;
for (; i < colcnt && (result_field= table->field[i]); i++) for (; i < colcnt && (result_field= table->field[i]); i++)
{ {
/* /*
......
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