From 35c103fa970bf825627a047f5d3ef2414548d6fb Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 13 Sep 2024 12:42:30 +0300 Subject: [PATCH] (str_crt_conv_from): handle INVALID_CONV. Signed-off-by: Andrew Borodin Signed-off-by: Yury V. Zaytsev --- lib/strutil/strutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strutil/strutil.c b/lib/strutil/strutil.c index e7515efbd..c833f7926 100644 --- a/lib/strutil/strutil.c +++ b/lib/strutil/strutil.c @@ -272,7 +272,7 @@ str_crt_conv_from (const char *from_enc) void str_close_conv (GIConv conv) { - if (conv != str_cnv_not_convert) + if (conv != INVALID_CONV && conv != str_cnv_not_convert) g_iconv_close (conv); } -- 2.11.4.GIT