diff 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
line wrap: on
line diff
--- a/Wnn/jserver/do_filecom.c	Thu Dec 13 04:30:14 2007 +0900
+++ b/Wnn/jserver/do_filecom.c	Thu Dec 13 04:47:24 2007 +0900
@@ -85,7 +85,7 @@
   if ( files == NULL )
     {
       log_err ("file_init: malloc faild.");
-      return (NULL);
+      return (FAILURE);
     }
   for (i = 0; i < MAX_FILES; i++)
     {
@@ -518,7 +518,7 @@
       wnn_errorno = WNN_RDONLY;
       goto ERR_RET;
     }
-  if (file_comment_set (&files[fid], comment) == NULL)
+  if (!file_comment_set (&files[fid], comment))
     {
       goto ERR_RET;
     }