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: Consistent return values on errors. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_txt/ecore_txt.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ecore_txt.c 1 Dec 2005 23:02:58 -0000 1.7 +++ ecore_txt.c 1 Dec 2005 23:08:43 -0000 1.8 @@ -20,9 +20,9 @@ char *new_txt, *inp, *outp; size_t inb, outb, outlen, tob, outalloc; - if (!text) return strdup(""); + if (!text) return NULL; ic = iconv_open(enc_to, enc_from); - if (ic == (iconv_t)(-1)) return strdup(""); + if (ic == (iconv_t)(-1)) return NULL; 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