cvs: php4 /ext/standard image.c
| From: | Sascha Schumann | Date: | Sat, 04 May 2002 17:24:08 +0000 |
| Subject: | cvs: php4 /ext/standard image.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11675@lists.php.net to get a copy of this message | ||
sas Sat May 4 13:24:08 2002 EDT
Modified files:
/php4/ext/standard image.c
Log:
entry_length was set but never used
Index: php4/ext/standard/image.c
diff -u php4/ext/standard/image.c:1.54 php4/ext/standard/image.c:1.55
--- php4/ext/standard/image.c:1.54 Thu Apr 11 03:26:53 2002
+++ php4/ext/standard/image.c Sat May 4 13:24:08 2002
@@ -16,7 +16,7 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: image.c,v 1.54 2002/04/11 07:26:53 helly Exp $ */
+/* $Id: image.c,v 1.55 2002/05/04 17:24:08 sas Exp $ */
/*
* Based on Daniel Schmitt's imageinfo.c which carried the following
* Copyright notice.
@@ -568,7 +568,7 @@
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 @@
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: