2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
* libexif/olympus
+ * libexif/pentax: Fix typo and wrong logic introduced during my
+ last changes. Thanks to Jan Patera
+ <patera@pictview.com> for keeping an eye on me.
+
+2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
+
+ * libexif/olympus
* libexif/pentax
* libexif/canon: Correctly return names, titles and descriptions of
tages. Pointed out by Angela Wrobel.
unsigned int i;
for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- return (table[i].name);
+ if (table[i].tag == t) return (table[i].name);
+ return NULL;
}
const char *
bindtextdomain (GETTEXT_PACKAGE, LIBEXIF_LOCALEDIR);
for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- return (_(table[i].title));
+ if (table[i].tag == t) return (_(table[i].title));
+ return NULL;
}
const char *
bindtextdomain (GETTEXT_PACKAGE, LIBEXIF_LOCALEDIR);
for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- if (!table[i].description) return NULL;
- return (_(table[i].description));
+ if (table[i].tag == t) return (_(table[i].description));
+ return NULL;
}
{
unsigned int i;
- for (i = 0; sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- return (table[i].name);
+ for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
+ if (table[i].tag == t) return (table[i].name);
+ return NULL;
}
const char *
bindtextdomain (GETTEXT_PACKAGE, LIBMNOTE_LOCALEDIR);
for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- return (_(table[i].title));
+ if (table[i].tag == t) return (_(table[i].title));
+ return NULL;
}
const char *
bindtextdomain (GETTEXT_PACKAGE, LIBMNOTE_LOCALEDIR);
for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
- if (table[i].tag == t) break;
- return (_(table[i].description));
+ if (table[i].tag == t) return (_(table[i].description));
+ return NULL;
}