summaryrefslogtreecommitdiff
path: root/sql/init.cc
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-03-28 17:31:46 +0400
committerbar@gw.udmsearch.izhnet.ru <>2002-03-28 17:31:46 +0400
commit55e0a9cb01af4b01bc4e4395de9e4dd2a1b0cf23 (patch)
tree4cad758c67f547af94b1846b1edf97d37c6862de /sql/init.cc
parent1b54e7c12c2d09f545e2e26aa9853df5989ac0be (diff)
downloadmariadb-git-55e0a9cb01af4b01bc4e4395de9e4dd2a1b0cf23.tar.gz
New UTF8 charset
Diffstat (limited to 'sql/init.cc')
-rw-r--r--sql/init.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/init.cc b/sql/init.cc
index fe80c282563..eea10e51bd8 100644
--- a/sql/init.cc
+++ b/sql/init.cc
@@ -57,7 +57,10 @@ void unireg_init(ulong options)
for (cs=compiled_charsets; cs->number; cs++)
{
- uchar max_char=cs->sort_order[(uchar) cs->max_sort_char];
+ uchar max_char;
+ if (!cs->sort_order)
+ continue;
+ cs->sort_order[(uchar) cs->max_sort_char];
for (i = 0; i < 256; i++)
{
if ((uchar) cs->sort_order[i] > max_char)