diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-01-12 14:31:04 +0400 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-01-12 14:31:04 +0400 |
commit | 6c8045d4698240bc20639c4f9631735bbed90fea (patch) | |
tree | 1a7457276f3e91349266f71b40f0b9f575fe00d1 /mysys/charset.c | |
parent | 24f8054460a574660730024690786b877afccfd3 (diff) | |
download | mariadb-git-6c8045d4698240bc20639c4f9631735bbed90fea.tar.gz |
charset.c:
Fixed: client crashed when there are no Index.xml file.
mysys/charset.c:
Fixed: client crashed when there are no Index.xml file.
Diffstat (limited to 'mysys/charset.c')
-rw-r--r-- | mysys/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/charset.c b/mysys/charset.c index f8c8237c88b..b911f29627c 100644 --- a/mysys/charset.c +++ b/mysys/charset.c @@ -540,7 +540,7 @@ static CHARSET_INFO *get_internal_charset(uint cs_number, myf flags) strxmov(get_charsets_dir(buf), cs->csname, ".xml", NullS); my_read_charset_file(buf,flags); } - cs= (cs->state & MY_CS_AVAILABLE) ? cs : NULL; + cs= (cs && cs->state & MY_CS_AVAILABLE) ? cs : NULL; pthread_mutex_unlock(&THR_LOCK_charset); return cs; } |