Commit 2db68457 authored by Davi Arnaut's avatar Davi Arnaut

Fix for valgrind warning: check whether pointer was initialized.

storage/myisammrg/ha_myisammrg.cc:
  myisam pointer is not relevant if a error was raised.
parent 1dafac6f
...@@ -380,7 +380,7 @@ static MI_INFO *myisammrg_attach_children_callback(void *callback_param) ...@@ -380,7 +380,7 @@ static MI_INFO *myisammrg_attach_children_callback(void *callback_param)
my_errno= HA_ERR_WRONG_MRG_TABLE_DEF; my_errno= HA_ERR_WRONG_MRG_TABLE_DEF;
} }
DBUG_PRINT("myrg", ("MyISAM handle: 0x%lx my_errno: %d", DBUG_PRINT("myrg", ("MyISAM handle: 0x%lx my_errno: %d",
(long) myisam, my_errno)); my_errno ? NULL : (long) myisam, my_errno));
err: err:
DBUG_RETURN(my_errno ? NULL : myisam); DBUG_RETURN(my_errno ? NULL : myisam);
......
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