diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 16:00:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 16:00:51 +0100 |
commit | 80799fa84eb4330083e4de20b87f97beea7d6ba7 (patch) | |
tree | c2a329d7fc7b08213ea83bdbaa169e95a78b6cd3 /src/path.c | |
parent | bdfb6c239af53d72f0808fc34e15d671036e8832 (diff) | |
download | mpd-80799fa84eb4330083e4de20b87f97beea7d6ba7.tar.gz mpd-80799fa84eb4330083e4de20b87f97beea7d6ba7.tar.xz mpd-80799fa84eb4330083e4de20b87f97beea7d6ba7.zip |
use config_get_string() instead of config_get_param()
config_get_string() is easier to use than config_get_param() because
it unpacks the config_param struct.
Diffstat (limited to '')
-rw-r--r-- | src/path.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/path.c b/src/path.c index 3b9b1eff6..01480bee4 100644 --- a/src/path.c +++ b/src/path.c @@ -66,13 +66,10 @@ const char *path_get_fs_charset(void) void path_global_init(void) { - struct config_param *fs_charset_param = - config_get_param(CONF_FS_CHARSET); const char *charset = NULL; - if (fs_charset_param) { - charset = fs_charset_param->value; - } else { + charset = config_get_string(CONF_FS_CHARSET, NULL); + if (charset == NULL) { const gchar **encodings; g_get_filename_charsets(&encodings); |