diff options
| author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-05-19 23:07:13 (GMT) |
|---|---|---|
| committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-05-19 23:07:13 (GMT) |
| commit | 1b8701ee3d55320b42676e77ce32c04950facee6 (patch) | |
| tree | 53582f83932c90609c0ae3a75d3668f48369187f /generic/tclPathObj.c | |
| parent | 16a75f3cbf8ba7ab30d4f5f1adcd658269d9ae8c (diff) | |
| parent | 83d22bd1f6fd20b5ce07fc4e16af80619f859422 (diff) | |
| download | tcl-1b8701ee3d55320b42676e77ce32c04950facee6.zip tcl-1b8701ee3d55320b42676e77ce32c04950facee6.tar.gz tcl-1b8701ee3d55320b42676e77ce32c04950facee6.tar.bz2 | |
Merge trunk
Diffstat (limited to 'generic/tclPathObj.c')
| -rw-r--r-- | generic/tclPathObj.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index abf9d6b..d7d8d33 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -2330,10 +2330,15 @@ UpdateStringOfFsPath( Tcl_Obj *copy; if (PATHFLAGS(pathPtr) == 0 || fsPathPtr->cwdPtr == NULL) { - Tcl_Panic("Called UpdateStringOfFsPath with invalid object"); + if (fsPathPtr->translatedPathPtr == NULL) { + Tcl_Panic("Called UpdateStringOfFsPath with invalid object"); + } else { + copy = Tcl_DuplicateObj(fsPathPtr->translatedPathPtr); + } + } else { + copy = AppendPath(fsPathPtr->cwdPtr, fsPathPtr->normPathPtr); } - copy = AppendPath(fsPathPtr->cwdPtr, fsPathPtr->normPathPtr); if (Tcl_IsShared(copy)) { copy = Tcl_DuplicateObj(copy); } |
