Commit 610bb1d2 authored by Monty's avatar Monty

Fixed bug thr_lock_info_init

This bug didn't cause any issues with current usage
parent 8cf166bf
......@@ -468,7 +468,7 @@ void thr_lock_delete(THR_LOCK *lock)
void thr_lock_info_init(THR_LOCK_INFO *info, struct st_my_thread_var *tmp)
{
if (tmp)
if (!tmp)
tmp= my_thread_var;
info->thread= tmp->pthread_self;
info->thread_id= tmp->id;
......
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