From 19d3345ab8c399260cf30fc3481d7c33ecaf96c8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Nov 2008 21:42:55 +0100 Subject: path: removed superfluous error check in path_set_fs_charset() The code which had a possible error condition had been removed. --- src/path.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') 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) -- cgit v1.2.3