diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-03 10:00:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-03 10:00:34 +0000 |
commit | a92507d2b8c41daaed6e9a018086392d9600a37a (patch) | |
tree | 8a474e905b12fb22418c4583b8f25ba82aa58119 /Src/utils.c | |
parent | 65e45654b3ef2708225b83f04d9c5f8a55d06143 (diff) | |
download | zsh-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/utils.c')
-rw-r--r-- | Src/utils.c | 2 |
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'; |