mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Check for (GIConv)-1 instead of NULL.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user