tree-sitter: update to 0.24.5
[oi-userland.git] / components / library / glib / patches / 29-prevent-iconv_close-segfault.patch
blobfd05a8a7ade43f402018d763afdc4b90adb80240
1 --- glib-2.82.0/gio/gcharsetconverter.c.orig
2 +++ glib-2.82.0/gio/gcharsetconverter.c
3 @@ -463,6 +463,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"),