Skip to content

Commit 1a6ab22

Browse files
Davi ArnautDavi Arnaut
authored andcommitted
Fix for valgrind warning: check whether pointer was initialized.
1 parent be89d30 commit 1a6ab22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/myisammrg/ha_myisammrg.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static MI_INFO *myisammrg_attach_children_callback(void *callback_param)
380380
my_errno= HA_ERR_WRONG_MRG_TABLE_DEF;
381381
}
382382
DBUG_PRINT("myrg", ("MyISAM handle: 0x%lx my_errno: %d",
383-
(long) myisam, my_errno));
383+
my_errno ? NULL : (long) myisam, my_errno));
384384

385385
err:
386386
DBUG_RETURN(my_errno ? NULL : myisam);

0 commit comments

Comments
 (0)