summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-07-17 15:56:07 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-07-17 15:56:07 (GMT)
commit032fffefe69a0bb8b45a2efe3ceb5bc59ffb9850 (patch)
tree8671e33707effce7e801e7e2eff96e2b3c44ae87 /Modules
parent0106e1dd20b910b83b29285eda8fd07840cd62bf (diff)
downloadcpython-032fffefe69a0bb8b45a2efe3ceb5bc59ffb9850.zip
cpython-032fffefe69a0bb8b45a2efe3ceb5bc59ffb9850.tar.gz
cpython-032fffefe69a0bb8b45a2efe3ceb5bc59ffb9850.tar.bz2
Remove unused variable.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index f0eaef5..1c95d5a 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -655,7 +655,7 @@ read_directory(char *archive)
PyObject *files = NULL;
FILE *fp;
long compress, crc, data_size, file_size, file_offset, date, time;
- long header_offset, name_size, header_size, header_end;
+ long header_offset, name_size, header_size;
long i, l, length, count;
char path[MAXPATHLEN + 5];
char name[MAXPATHLEN + 5];
@@ -675,7 +675,6 @@ read_directory(char *archive)
return NULL;
}
fseek(fp, -22, SEEK_END);
- header_end = ftell(fp);
if (fread(endof_central_dir, 1, 22, fp) != 22) {
fclose(fp);
PyErr_Format(ZipImportError, "can't read Zip file: "