# HG changeset patch # User zas_ # Date 1209767484 0 # Node ID 4230e67bdfb1dbf77a7246a359cfd2b2d8a0b1be # Parent 7ada6e5d4de83a00158af95b5d0c5109bbabab73 exif_get_description_by_key(): tidy up. diff -r 7ada6e5d4de8 -r 4230e67bdfb1 src/exif-common.c --- a/src/exif-common.c Fri May 02 22:28:39 2008 +0000 +++ b/src/exif-common.c Fri May 02 22:31:24 2008 +0000 @@ -476,12 +476,9 @@ if (!key) return NULL; - i = 0; - while (ExifFormattedList[i].key != NULL) - { - if (strcmp(key, ExifFormattedList[i].key) == 0) return _(ExifFormattedList[i].description); - i++; - } + for (i = 0; ExifFormattedList[i].key; i++) + if (strcmp(key, ExifFormattedList[i].key) == 0) + return _(ExifFormattedList[i].description); return exif_get_tag_description_by_key(key); }