summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-05-04 17:24:08 +0000
committerSascha Schumann <sas@php.net>2002-05-04 17:24:08 +0000
commit9e91566179568900c7971e6b83566748c689c1e4 (patch)
tree5697d8cd9dcdcb3bbf1c9d16627e9a7019e2c395
parent01c980980c034b67eef31b046283d836b75e2f56 (diff)
downloadphp-git-9e91566179568900c7971e6b83566748c689c1e4.tar.gz
entry_length was set but never used
-rw-r--r--ext/standard/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 40ab18b393..f6f466fd4c 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -568,7 +568,7 @@ static struct gfxinfo *php_handle_tiff (php_stream * stream, pval *info, int mot
struct gfxinfo *result = NULL;
int i, num_entries;
unsigned char *dir_entry;
- size_t ifd_size, dir_size, entry_value, entry_length, width=0, height=0, ifd_addr;
+ size_t ifd_size, dir_size, entry_value, width=0, height=0, ifd_addr;
int entry_tag , entry_type;
char *ifd_data, ifd_ptr[4];
@@ -589,7 +589,6 @@ static struct gfxinfo *php_handle_tiff (php_stream * stream, pval *info, int mot
dir_entry = ifd_data+2+i*12;
entry_tag = php_ifd_get16u(dir_entry+0, motorola_intel);
entry_type = php_ifd_get16u(dir_entry+2, motorola_intel);
- entry_length = php_ifd_get32u(dir_entry+4, motorola_intel) * php_tiff_bytes_per_format[entry_type];
switch(entry_type) {
case TAG_FMT_BYTE:
case TAG_FMT_SBYTE: