From 90b4af03410cb151225853c458546abe6d696f1c Mon Sep 17 00:00:00 2001
From: "J. Alexander Treuman" <jat@spatialrift.net>
Date: Mon, 8 Jan 2007 03:28:36 +0000
Subject: Moving pathConvCharset to charConv.c so it can be reused for
 localization.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5226 09075e82-0dd4-0310-85a5-a0d7c8717e4f
---
 src/charConv.c | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/charConv.c')

diff --git a/src/charConv.c b/src/charConv.c
index 8e614f3a0..8e8a9ce95 100644
--- a/src/charConv.c
+++ b/src/charConv.c
@@ -150,6 +150,13 @@ char *convStrDup(char *string)
 	return NULL;
 }
 
+char *convCharset(char *to, char *from, char *str, char *ret)
+{
+	if (ret)
+		free(ret);
+	return setCharSetConversion(to, from) ? NULL : convStrDup(str);
+}
+
 static void closeCharSetConversion(void)
 {
 	if (char_conv_to) {
-- 
cgit v1.2.3