Check the return value correctly.

SVN revision: 18772
This commit is contained in:
rbdpngn 2005-12-01 23:02:58 +00:00 committed by rbdpngn
parent 2489a46975
commit ebdd5d371a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ ecore_txt_convert(const char *enc_from, const char *enc_to, const char *text)
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;