Mercurial > freewnn
diff Wnn/jserver/get_kaiarea.c @ 1:790205f476c0
applied wnn_dec12.diff
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 13 Dec 2007 04:47:24 +0900 |
parents | bbc77ca4def5 |
children | 338478efe78d |
line wrap: on
line diff
--- a/Wnn/jserver/get_kaiarea.c Thu Dec 13 04:30:14 2007 +0900 +++ b/Wnn/jserver/get_kaiarea.c Thu Dec 13 04:47:24 2007 +0900 @@ -60,28 +60,28 @@ { wnn_errorno = WNN_MALLOC_INITIALIZE; log_debug ("malloc failed in maxj."); - return (NULL); + return (0); } if (NULL == (jmtp = (struct jdata ***) calloc (kana_len, sizeof (struct jdata **)))) { wnn_errorno = WNN_MALLOC_INITIALIZE; log_debug ("malloc failed in jmtp."); - return (NULL); + return (0); } if (NULL == (jmt_ = (struct jdata **) calloc (SIZE_JISHOTABLE, sizeof (struct jdata *)))) { wnn_errorno = WNN_MALLOC_INITIALIZE; log_debug ("malloc failed in jmt_."); - return (NULL); + return (0); } if (NULL == (jmtw_ = (struct jdata *) calloc (SIZE_JISHOHEAP, sizeof (struct jdata)))) { wnn_errorno = WNN_MALLOC_INITIALIZE; log_debug ("malloc failed in jmtw_."); - return (NULL); + return (0); } jmt_end = jmt_ + SIZE_JISHOTABLE; @@ -92,7 +92,7 @@ { wnn_errorno = WNN_MALLOC_INITIALIZE; log_debug ("malloc failed in bun."); - return (NULL); + return (0); } maxchg = kana_len;