summaryrefslogtreecommitdiff
path: root/Src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 230951ffc..bb18eb859 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -691,6 +691,8 @@ xsymlinks(char *s)
zsfree(*pp);
if (!strcmp(xbuf, "/"))
continue;
+ if (!*xbuf)
+ continue;
p = xbuf + strlen(xbuf);
while (*--p != '/');
*p = '\0';