Check for (GIConv)-1 instead of NULL.

parent bcbf9153
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment