openexr: make architecture independent
[oi-userland.git] / components / library / glib / patches / 29-prevent-iconv_close-segfault.patch
blobe79ad9b4300d90df5b9465731b0a845ede0fbf84
1 --- glib-2.62.6/gio/gcharsetconverter.c.orig
2 +++ glib-2.62.6/gio/gcharsetconverter.c
3 @@ -451,6 +451,9 @@
5 if (conv->iconv == (GIConv)-1)
7 + /* Clear conv->iconv so iconv_close(-1) is not called - see
8 + * https://www.illumos.org/issues/14937 */
9 + conv->iconv = NULL;
10 if (errsv == EINVAL)
11 g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
12 _("Conversion from character set ā€œ%sā€ to ā€œ%sā€ is not supported"),