aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-26 11:06:29 +0000
committerKalle Wallin <kaw@linux.se>2004-03-26 11:06:29 +0000
commit8ccbb1a4fc500d7ae746868da85907f4c80f1ea2 (patch)
tree688d11790ab2778373671982c9f349334f1a2400
parentc3f9aa85429f0d60988326f3ef779a1a7c860f79 (diff)
downloadmpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.tar.gz
mpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.tar.xz
mpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.zip
Updated the logic in charset_close(), why free stuff that isnt allocated.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@496 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-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);