aboutsummaryrefslogtreecommitdiffstats
path: root/support.c
diff options
context:
space:
mode:
Diffstat (limited to 'support.c')
-rw-r--r--support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support.c b/support.c
index d7c196a94..9bf18cc47 100644
--- a/support.c
+++ b/support.c
@@ -166,12 +166,12 @@ int
charset_close(void)
{
#ifdef HAVE_ICONV
- if( iconv_from_uft8 == (iconv_t)(-1) )
+ if( iconv_from_uft8 != (iconv_t)(-1) )
{
iconv_close(iconv_from_uft8);
iconv_from_uft8 = (iconv_t)(-1);
}
- if( iconv_to_uft8 == (iconv_t)(-1) )
+ if( iconv_to_uft8 != (iconv_t)(-1) )
{
iconv_close(iconv_to_uft8);
iconv_to_uft8 = (iconv_t)(-1);