Author: yamakenz
Date: Tue Aug 28 06:35:26 2007
New Revision: 4925

Modified:
   trunk/uim/uim-helper.c

Log:
* uim-helper.c
  - (uim_helper_send_message): Fix the fatal errors on ordinary use
    cases. Thanks No.815 and No.820 of [uim thread 7] for the report


Modified: trunk/uim/uim-helper.c
==============================================================================
--- trunk/uim/uim-helper.c      (original)
+++ trunk/uim/uim-helper.c      Tue Aug 28 06:35:26 2007
@@ -98,8 +98,16 @@
   if (UIM_CATCH_ERROR_BEGIN())
     return;
 
+#if 0
+  if (fd < 0)
+    uim_fatal_error("uim_helper_send_message(): invaid fd");
+  if (!message)
+    uim_fatal_error("uim_helper_send_message(): NULL message");
+#else
+  /* The condition fd < 0 ordinarily occurs. */
   if (fd < 0 || !message)
-    uim_fatal_error("uim_helper_send_message()");
+    return;
+#endif
 
   len = strlen(message) + 1;
   buf = uim_malloc(len + 1);

Reply via email to