some fast patch
This commit is contained in:
parent
9c671b8527
commit
b38b829612
9 changed files with 150 additions and 7 deletions
|
|
@ -39,7 +39,7 @@ static struct sj4table {
|
|||
Sj4Ime* sj4_ime(int charset, const char* dict, Sj4ImePacket packet) {
|
||||
Sj4Ime* ime;
|
||||
|
||||
if((ime = calloc(1, sizeof(*ime))) == NULL) return NULL;
|
||||
if((ime = (Sj4Ime*)calloc(1, sizeof(*ime))) == NULL) return NULL;
|
||||
|
||||
if((ime->lib = sj4_open(charset, dict)) == NULL) {
|
||||
free((char*)ime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue