Fix for valgrind warning: check whether pointer was initialized.

storage/myisammrg/ha_myisammrg.cc:
  myisam pointer is not relevant if a error was raised.
This commit is contained in:
Davi Arnaut 2010-02-02 11:17:58 -02:00
parent 1dafac6f35
commit 2db684572e

View file

@ -380,7 +380,7 @@ static MI_INFO *myisammrg_attach_children_callback(void *callback_param)
my_errno= HA_ERR_WRONG_MRG_TABLE_DEF;
}
DBUG_PRINT("myrg", ("MyISAM handle: 0x%lx my_errno: %d",
(long) myisam, my_errno));
my_errno ? NULL : (long) myisam, my_errno));
err:
DBUG_RETURN(my_errno ? NULL : myisam);