mirror of https://github.com/MidnightCommander/mc
(str_crt_conv_from): handle INVALID_CONV.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
6d21e16007
commit
0a3ea1f829
|
@ -274,7 +274,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue