From: Dan F. <dfa...@us...> - 2008-01-31 08:25:42
|
Update of /cvsroot/libexif/libexif/libexif/canon In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1642/canon Modified Files: mnote-canon-tag.c Log Message: GNU gettext behaves strangely when given an empty string, so make sure not to do that. Index: mnote-canon-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/canon/mnote-canon-tag.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -d -r1.15 -r1.16 --- mnote-canon-tag.c 14 Nov 2007 05:27:19 -0000 1.15 +++ mnote-canon-tag.c 31 Jan 2008 08:25:34 -0000 1.16 @@ -192,6 +192,10 @@ mnote_canon_tag_get_description (MnoteCa bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) - if (table[i].tag == t) return (_(table[i].description)); + if (table[i].tag == t) { + if (!*table[i].description) + return ""; + return (_(table[i].description)); + } return NULL; } |