about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-11-03 10:00:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-11-03 10:00:34 +0000
commita92507d2b8c41daaed6e9a018086392d9600a37a (patch)
tree8a474e905b12fb22418c4583b8f25ba82aa58119 /Src
parent65e45654b3ef2708225b83f04d9c5f8a55d06143 (diff)
downloadzsh-a92507d2b8c41daaed6e9a018086392d9600a37a.tar.gz
zsh-a92507d2b8c41daaed6e9a018086392d9600a37a.tar.xz
zsh-a92507d2b8c41daaed6e9a018086392d9600a37a.zip
Mikael: 27337: fix bug searching for / when
scanning symlinks in cd
Diffstat (limited to 'Src')
-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';