mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Check for (GIConv)-1 instead of NULL.
This commit is contained in:
parent
bcbf9153d5
commit
ab3a79e2c9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user