From: Lutz M. <lu...@us...> - 2004-09-07 20:41:15
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10852/libexif/olympus Modified Files: mnote-olympus-tag.c Log Message: 2004-09-07 Lutz Mueller <lu...@us...> * libexif/olympus * libexif/pentax: Fix typo and wrong logic introduced during my last changes. Thanks to Jan Patera <pa...@pi...> for keeping an eye on me. Index: mnote-olympus-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/mnote-olympus-tag.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- mnote-olympus-tag.c 7 Sep 2004 06:33:54 -0000 1.7 +++ mnote-olympus-tag.c 7 Sep 2004 20:41:05 -0000 1.8 @@ -128,8 +128,8 @@ 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 * @@ -139,8 +139,8 @@ 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 * @@ -150,7 +150,6 @@ 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; } |