Commit 04f241a4 authored by sensssz's avatar sensssz

Add a NULL check for thd_is_replication_slave_thread

parent adaebd25
......@@ -1687,7 +1687,7 @@ thd_is_replication_slave_thread(
/*============================*/
THD* thd) /*!< in: thread handle */
{
return((ibool) thd_slave_thread(thd));
return thd && ((ibool) thd_slave_thread(thd));
}
/******************************************************************//**
......
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