Fix bugs
This commit is contained in:
parent
a6a7858eaf
commit
69776245a7
20 changed files with 59721 additions and 58907 deletions
|
|
@ -85,10 +85,26 @@ Sj4Context* alloccontext(const char* dic) {
|
|||
DictFile* dict;
|
||||
DICTL* node;
|
||||
|
||||
ctx->work = calloc(1, sizeof(*ctx->work));
|
||||
ctx->stdy = calloc(1, sizeof(*ctx->stdy));
|
||||
if((ctx->work = calloc(1, sizeof(*ctx->work))) == NULL) {
|
||||
free(ctx);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
if((ctx->stdy = calloc(1, sizeof(*ctx->stdy))) == NULL) {
|
||||
free(ctx->work);
|
||||
free(ctx);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if((node = calloc(1, sizeof(*node))) == NULL) {
|
||||
free(ctx->stdy);
|
||||
free(ctx->work);
|
||||
free(ctx);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
node = calloc(1, sizeof(*node));
|
||||
ctx->work->Jdictlist = node;
|
||||
|
||||
initwork(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue