aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-20 21:01:55 +0200
committerMax Kellermann <max@duempel.org>2009-10-20 21:01:55 +0200
commitc953d6409dffd476370ba639118cba97bcda2f35 (patch)
tree5920d5d03757ae9fd6fd753dcef7532d07bff96b /src/utils.c
parent447e4d3583d3394a25f0fb186f50cea45dd7f797 (diff)
downloadmpd-c953d6409dffd476370ba639118cba97bcda2f35.tar.gz
mpd-c953d6409dffd476370ba639118cba97bcda2f35.tar.xz
mpd-c953d6409dffd476370ba639118cba97bcda2f35.zip
mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...
Try to be as portable as possible, use GLib path name functions and macros.
Diffstat (limited to '')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index fc27b13c9..933a70a8c 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -44,7 +44,7 @@
char *parsePath(char *path)
{
#ifndef WIN32
- if (path[0] != '/' && path[0] != '~') {
+ if (!g_path_is_absolute(path) && path[0] != '~') {
g_warning("\"%s\" is not an absolute path", path);
return NULL;
} else if (path[0] == '~') {