summaryrefslogtreecommitdiffstats
path: root/generic/tclZipfs.c
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2021-10-13 16:34:46 (GMT)
committergriffin <briang42@easystreet.net>2021-10-13 16:34:46 (GMT)
commit2812109f17b5854a23b1f0b63d0fd99b1f56965a (patch)
treef9e40931f5ee032c4796e0350369c91b662abfa5 /generic/tclZipfs.c
parent34e7d9999e042408f6eef02bbd690d43f25b9fde (diff)
downloadtcl-2812109f17b5854a23b1f0b63d0fd99b1f56965a.zip
tcl-2812109f17b5854a23b1f0b63d0fd99b1f56965a.tar.gz
tcl-2812109f17b5854a23b1f0b63d0fd99b1f56965a.tar.bz2
Remove unnecessary change
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r--generic/tclZipfs.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 4d40da3..ae4c8c4 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -3122,22 +3122,6 @@ ZipFSMkZipOrImg(
* Copy everything up to the ZIP-related suffix.
*/
- if (zf->passOffset == 0) {
- /*
- * Hmm, this mounted archive is local (in this image), but
- * zf->passOffset does not have a valid value. Let's open
- * this image and find the passOffset so as to copy the image
- * correctly.
- */
-
- ZipFile zflocal;
- memset(&zflocal, 0, sizeof(ZipFile));
- if (ZipFSOpenArchive(interp, imgName, 0, &zflocal) == TCL_OK) {
- zf->passOffset = zflocal.passOffset;
- ZipFSCloseArchive(interp, &zflocal);
- }
- }
-
if ((size_t) Tcl_Write(out, (char *) zf->data,
zf->passOffset) != zf->passOffset) {
memset(passBuf, 0, sizeof(passBuf));