From: Lutz M. <lu...@us...> - 2004-09-07 20:41:15
|
Update of /cvsroot/libexif/libexif/libexif/pentax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10852/libexif/pentax Modified Files: mnote-pentax-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-pentax-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/pentax/mnote-pentax-tag.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mnote-pentax-tag.c 7 Sep 2004 06:33:54 -0000 1.3 +++ mnote-pentax-tag.c 7 Sep 2004 20:41:05 -0000 1.4 @@ -66,9 +66,9 @@ { 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 * @@ -78,8 +78,8 @@ 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 * @@ -89,6 +89,6 @@ 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; } |