aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-05 21:42:55 +0100
committerMax Kellermann <max@duempel.org>2008-11-05 21:42:55 +0100
commit19d3345ab8c399260cf30fc3481d7c33ecaf96c8 (patch)
tree53e207d0f0b837673d34c0ff4857897afbb7f88d /src/path.c
parent5b2e98125331fc286d8923fa14335383f2c82a05 (diff)
downloadmpd-19d3345ab8c399260cf30fc3481d7c33ecaf96c8.tar.gz
mpd-19d3345ab8c399260cf30fc3481d7c33ecaf96c8.tar.xz
mpd-19d3345ab8c399260cf30fc3481d7c33ecaf96c8.zip
path: removed superfluous error check in path_set_fs_charset()
The code which had a possible error condition had been removed.
Diffstat (limited to '')
-rw-r--r--src/path.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/path.c b/src/path.c
index df7cfdfb6..6e7ccae14 100644
--- a/src/path.c
+++ b/src/path.c
@@ -67,18 +67,10 @@ char *utf8_to_fs_charset(char *dst, const char *str)
void path_set_fs_charset(const char *charset)
{
- int error = 0;
-
g_free(fs_charset);
fs_charset = g_strdup(charset);
DEBUG("path_set_fs_charset: fs charset is: %s\n", fs_charset);
-
- if (error) {
- free(fs_charset);
- WARNING("setting fs charset to ISO-8859-1!\n");
- fs_charset = xstrdup("ISO-8859-1");
- }
}
const char *path_get_fs_charset(void)