aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/path.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/path.c b/src/path.c
index 35836ea46..21597f5e6 100644
--- a/src/path.c
+++ b/src/path.c
@@ -143,14 +143,10 @@ void initPaths(void)
}
closedir(dir);
- if (fsCharsetParam) {
+ if (fsCharsetParam)
charset = xstrdup(fsCharsetParam->value);
- } else if ((charset = getLocaleCharset())) {
- if (*charset == '\0')
- charset = NULL;
- else
- charset = xstrdup(charset);
- }
+ else if ((charset = getLocaleCharset()))
+ charset = xstrdup(charset);
if (charset) {
setFsCharset(charset);