aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xcursor/xcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c
index b0c424f4..d9a942f8 100644
--- a/xcursor/xcursor.c
+++ b/xcursor/xcursor.c
@@ -647,7 +647,7 @@ XcursorLibraryPath (void)
}
else {
env_var = getenv("XDG_DATA_HOME");
- if (env_var) {
+ if (env_var && env_var[0] == '/') {
pathlen = strlen(env_var) +
strlen(CURSORDIR ":" XCURSORPATH) + 1;
path = malloc(pathlen);