Skip to content

Commit 3e50b4e

Browse files
committed
Fixed (wrong) compiler warning about uninitialized memory
1 parent 376ca2f commit 3e50b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/rpl_record.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ static void convert_field(Field *f, Field *result_field, Field *conv_field)
315315
@retval HA_ERR_CORRUPT_EVENT
316316
Found error when trying to unpack fields.
317317
*/
318+
318319
int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
319320
uchar const *const row_data, MY_BITMAP const *cols,
320321
uchar const **const current_row_end,
@@ -349,7 +350,7 @@ int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
349350
st.next_null_byte();
350351
if (!rpl_data.is_online_alter())
351352
{
352-
Field *result_field;
353+
Field *result_field= 0;
353354
for (; i < colcnt && (result_field= table->field[i]); i++)
354355
{
355356
/*

0 commit comments

Comments
 (0)