summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index dbcf368..a90d105 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -53,6 +53,8 @@ def join(s, *p):
try:
colon = _get_colon(s)
path = s
+ if not p:
+ path[:0] + colon #23780: Ensure compatible data type even if p is null.
for t in p:
if (not path) or isabs(t):
path = t