Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_txt Modified Files: ecore_txt.c Log Message: Check the return value correctly. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_txt/ecore_txt.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ecore_txt.c 2 Mar 2005 07:06:42 -0000 1.6 +++ ecore_txt.c 1 Dec 2005 23:02:58 -0000 1.7 @@ -22,7 +22,7 @@ if (!text) return strdup(""); ic = iconv_open(enc_to, enc_from); - if (!ic) return strdup(""); + if (ic == (iconv_t)(-1)) return strdup(""); new_txt = malloc(64); inb = strlen(text); outb = 64; ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs