summaryrefslogtreecommitdiff
path: root/mysys/thr_lock.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-04-26 15:01:12 +0300
committerMonty <monty@mariadb.org>2020-05-23 12:29:09 +0300
commit610bb1d2c078075d780aee644428326ac5511e7e (patch)
tree61f67b0f619af415cfad2b3a3a02b8ed4c934ad6 /mysys/thr_lock.c
parent8cf166bfb2f7791d5f5e5b419bbcc4a2fcbb221f (diff)
downloadmariadb-git-610bb1d2c078075d780aee644428326ac5511e7e.tar.gz
Fixed bug thr_lock_info_init
This bug didn't cause any issues with current usage
Diffstat (limited to 'mysys/thr_lock.c')
-rw-r--r--mysys/thr_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/thr_lock.c b/mysys/thr_lock.c
index c798c8595e7..07ba1ec9eac 100644
--- a/mysys/thr_lock.c
+++ b/mysys/thr_lock.c
@@ -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;