helly Sun Feb 25 13:09:13 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/exif exif.c
Log:
- MFH Readability
http://cvs.php.net/viewvc.cgi/php-src/ext/exif/exif.c?r1=1.173.2.5.2.17&r2=1.173.2.5.2.18&diff_format=u
Index: php-src/ext/exif/exif.c
diff -u php-src/ext/exif/exif.c:1.173.2.5.2.17
php-src/ext/exif/exif.c:1.173.2.5.2.18
--- php-src/ext/exif/exif.c:1.173.2.5.2.17 Sat Feb 24 18:02:11 2007
+++ php-src/ext/exif/exif.c Sun Feb 25 13:09:13 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.173.2.5.2.17 2007/02/24 18:02:11 iliaa Exp $ */
+/* $Id: exif.c,v 1.173.2.5.2.18 2007/02/25 13:09:13 helly Exp $ */
/* ToDos
*
@@ -142,7 +142,7 @@
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id: exif.c,v 1.173.2.5.2.17 2007/02/24 18:02:11
iliaa Exp $"
+#define EXIF_VERSION "1.4 $Id: exif.c,v 1.173.2.5.2.18 2007/02/25 13:09:13
helly Exp $"
/* {{{ PHP_MINFO_FUNCTION
*/
@@ -569,7 +569,7 @@
#define TAG_TABLE_END \
{TAG_NONE, "No tag value"},\
{TAG_COMPUTED_VALUE, "Computed value"},\
- {TAG_END_OF_LIST, ""} /* Important for exif_get_tagname() IF value != ""
functionresult is != false */
+ {TAG_END_OF_LIST, ""} /* Important for exif_get_tagname() IF value != ""
function result is != false */
static tag_info_array tag_table_IFD = {
{ 0x000B, "ACDComment"},
@@ -996,11 +996,8 @@
int i, t;
char tmp[32];
- for (i=0;;i++) {
- if ((t=tag_table[i].Tag) == tag_num || t==TAG_END_OF_LIST) {
- if (t==TAG_END_OF_LIST) {
- break;
- }
+ for (i = 0; (t = tag_table[i].Tag) != TAG_END_OF_LIST; i++) {
+ if (t == tag_num) {
if (ret && len) {
strlcpy(ret, tag_table[i].Desc, abs(len));
if (len < 0) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php