Skip to content

Commit

Permalink
exif_get_description_by_key(): tidy up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 2, 2008
1 parent 30eb012 commit 66d230f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/exif-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,9 @@ const gchar *exif_get_description_by_key(const gchar *key)

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);
}
Expand Down

0 comments on commit 66d230f

Please sign in to comment.