summaryrefslogtreecommitdiff
path: root/sql/thr_malloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r--sql/thr_malloc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc
index e0385c33fd8..fd33ee4c32b 100644
--- a/sql/thr_malloc.cc
+++ b/sql/thr_malloc.cc
@@ -27,7 +27,7 @@ extern "C" {
void sql_alloc_error_handler(void)
{
THD *thd= current_thd;
- if (thd)
+ if (likely(thd))
{
if (! thd->is_error())
{