From: Dan F. <dfa...@us...> - 2008-01-31 08:25:39
|
Update of /cvsroot/libexif/libexif/libexif/pentax In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1642/pentax Modified Files: mnote-pentax-tag.c Log Message: GNU gettext behaves strangely when given an empty string, so make sure not to do that. Index: mnote-pentax-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/pentax/mnote-pentax-tag.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -p -d -r1.9 -r1.10 --- mnote-pentax-tag.c 14 Nov 2007 05:27:19 -0000 1.9 +++ mnote-pentax-tag.c 31 Jan 2008 08:25:34 -0000 1.10 @@ -103,6 +103,10 @@ mnote_pentax_tag_get_description (MnoteP 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; } |