aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 96c429529..5e39c1636 100644
--- a/src/path.c
+++ b/src/path.c
@@ -20,6 +20,7 @@
#include "config.h"
#include "path.h"
#include "conf.h"
+#include "mpd_error.h"
#include <glib.h>
@@ -64,7 +65,7 @@ path_set_fs_charset(const char *charset)
/* convert a space to ensure that the charset is valid */
test = g_convert(" ", 1, charset, "UTF-8", NULL, NULL, NULL);
if (test == NULL)
- g_error("invalid filesystem charset: %s", charset);
+ MPD_ERROR("invalid filesystem charset: %s", charset);
g_free(test);
g_free(fs_charset);