Check for (GIConv)-1 instead of NULL.

This commit is contained in:
Ignacio Casal Quinteiro 2010-11-21 21:20:44 +01:00
parent bcbf9153d5
commit ab3a79e2c9

View File

@ -451,7 +451,7 @@ g_charset_converter_initable_init (GInitable *initable,
conv->iconv =
g_iconv_open (conv->to, conv->from);
if (conv->iconv == NULL)
if (conv->iconv == (GIConv)-1)
{
if (errno == EINVAL)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,