summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-09-21 09:29:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-09-21 09:29:24 (GMT)
commitd025ae5c08c20fe811f1917da0408e1f23768786 (patch)
tree66859d52f14255fb384c2699df0a8143a7b39b77 /generic/tclFileName.c
parentfbef9aa84089336e767f0dafe410df51b4f1d3b3 (diff)
parentbd42171094d5ada2e2e46978f2e842a66b6fa44e (diff)
downloadtcl-d025ae5c08c20fe811f1917da0408e1f23768786.zip
tcl-d025ae5c08c20fe811f1917da0408e1f23768786.tar.gz
tcl-d025ae5c08c20fe811f1917da0408e1f23768786.tar.bz2
merge core-8-branch
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 15fcde7..015cfc3 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -1881,7 +1881,7 @@ TclGlob(
separators = "/\\";
} else if (tclPlatform == TCL_PLATFORM_UNIX) {
- if (pathPrefix == NULL && tail[0] == '/') {
+ if (pathPrefix == NULL && tail[0] == '/' && tail[1] != '/') {
pathPrefix = Tcl_NewStringObj(tail, 1);
tail++;
Tcl_IncrRefCount(pathPrefix);