summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-12-20 13:03:45 +0200
committerMonty <monty@mariadb.org>2017-01-11 09:18:35 +0200
commited0bc17bee591599c988df21b8d5a264f08eb885 (patch)
treeb0ecffbdd161e067a10096b3a55099adb2164e0f /sql/item_func.cc
parente80ad58de8bce0923b91c08d12959c42e9e213a5 (diff)
downloadmariadb-git-ed0bc17bee591599c988df21b8d5a264f08eb885.tar.gz
Removed usage of my_hash_search() with uninitialized HASH.
- Not documented on intened usage - Extra checking takes time for all HASH usage
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index c38bdba05c2..8e912fe83c8 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -4302,7 +4302,8 @@ longlong Item_func_release_lock::val_int()
User_level_lock *ull;
- if (!(ull=
+ if (!my_hash_inited(&thd->ull_hash) ||
+ !(ull=
(User_level_lock*) my_hash_search(&thd->ull_hash,
ull_key.ptr(), ull_key.length())))
{