some fast patch

This commit is contained in:
Nishi 2026-09-23 19:46:54 +09:00
commit b38b829612
9 changed files with 150 additions and 7 deletions

View file

@ -25,7 +25,7 @@ Sj4Lib* sj4_open(int charset, const char* dic) {
if(charset == SJ4UTF8 || charset == SJ4UTF16) return NULL;
#endif
if((ctx = calloc(1, sizeof(*ctx))) == NULL) return NULL;
if((ctx = (Sj4Lib*)calloc(1, sizeof(*ctx))) == NULL) return NULL;
if((ctx->ctx = alloccontext(dic)) == NULL) {
free((char*)ctx);