summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <bar@bar.intranet.mysql.r18.ru>2004-05-25 17:40:20 +0500
committerunknown <bar@bar.intranet.mysql.r18.ru>2004-05-25 17:40:20 +0500
commit8ee5b216a15dcd5fb81d8e7d231185c6fd1ac65c (patch)
treea9a4fa11270cbdaa126493450d0bb6e8552335ed /mysys
parent6c09db274773a36350b8a3f794a847684bd0ca30 (diff)
downloadmariadb-git-8ee5b216a15dcd5fb81d8e7d231185c6fd1ac65c.tar.gz
Preparation for user-defined Unicode collations:
weights data now comes from a static variables but from the charset structure.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/charset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index c80b00db397..d801fcdbd76 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -466,7 +466,8 @@ static my_bool init_available_charsets(myf myflags)
if (*cs)
{
set_max_sort_char(*cs);
- init_state_maps(*cs);
+ if (cs[0]->ctype)
+ init_state_maps(*cs);
}
}