mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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.
This commit is contained in:
parent
24f8054460
commit
6c8045d469
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue