summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-11-23 21:18:10 +0300
committerkonstantin@mysql.com <>2005-11-23 21:18:10 +0300
commitb1d951d4626cb70375c262de9ba4a67a24d85e57 (patch)
tree82cf7863e471a48c80281113d66a428d0a2c3a1c /sql/sql_udf.cc
parent83d692da888281576b7f7dd4fee1faa5be7eff68 (diff)
downloadmariadb-git-b1d951d4626cb70375c262de9ba4a67a24d85e57.tar.gz
Always initialize THD::thread_stack: it's used in
check_stack_overrun().
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index ba3c598a784..40e5a9a00cf 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -159,6 +159,7 @@ void udf_init()
DBUG_VOID_RETURN;
}
initialized = 1;
+ new_thd->thread_stack= (char*) &new_thd;
new_thd->store_globals();
new_thd->db= my_strdup("mysql", MYF(0));
new_thd->db_length=5;