Revision: 7271
Author:   ek.kato
Date:     Tue Aug 23 19:16:22 2011
Log:      * uim/iconv.c (uim_iconv_code_conv) : Fix to checke the xistence
  of instr first.

http://code.google.com/p/uim/source/detail?r=7271

Modified:
 /trunk/uim/iconv.c

=======================================
--- /trunk/uim/iconv.c  Thu Jan  6 18:09:56 2011
+++ /trunk/uim/iconv.c  Tue Aug 23 19:16:22 2011
@@ -264,12 +264,14 @@
   if (UIM_CATCH_ERROR_BEGIN())
     return NULL;

-  if (!obj)
-    return uim_strdup(instr);
-
   if (!instr)
     goto err;

+  if (!obj) {
+    UIM_CATCH_ERROR_END();
+    return uim_strdup(instr);
+  }
+
   ins = strlen(instr);
   in = instr;

Reply via email to