comparison Wnn/jserver/do_filecom.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
comparison
equal deleted inserted replaced
0:bbc77ca4def5 1:790205f476c0
83 int i; 83 int i;
84 files = (struct wnn_file *)calloc(MAX_FILES, sizeof(struct wnn_file)); 84 files = (struct wnn_file *)calloc(MAX_FILES, sizeof(struct wnn_file));
85 if ( files == NULL ) 85 if ( files == NULL )
86 { 86 {
87 log_err ("file_init: malloc faild."); 87 log_err ("file_init: malloc faild.");
88 return (NULL); 88 return (FAILURE);
89 } 89 }
90 for (i = 0; i < MAX_FILES; i++) 90 for (i = 0; i < MAX_FILES; i++)
91 { 91 {
92 files[i].ref_count = -1; 92 files[i].ref_count = -1;
93 } 93 }
516 if (dic_table[dic_no].hindo == fid && dic_table[dic_no].hindo_rw == WNN_DIC_RDONLY) 516 if (dic_table[dic_no].hindo == fid && dic_table[dic_no].hindo_rw == WNN_DIC_RDONLY)
517 { 517 {
518 wnn_errorno = WNN_RDONLY; 518 wnn_errorno = WNN_RDONLY;
519 goto ERR_RET; 519 goto ERR_RET;
520 } 520 }
521 if (file_comment_set (&files[fid], comment) == NULL) 521 if (!file_comment_set (&files[fid], comment))
522 { 522 {
523 goto ERR_RET; 523 goto ERR_RET;
524 } 524 }
525 put4_cur (0); 525 put4_cur (0);
526 putc_purge (); 526 putc_purge ();