From: Dan F. <dfa...@us...> - 2008-01-31 08:25:38
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1642/olympus Modified Files: mnote-olympus-tag.c Log Message: GNU gettext behaves strangely when given an empty string, so make sure not to do that. Index: mnote-olympus-tag.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/mnote-olympus-tag.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -p -d -r1.14 -r1.15 --- mnote-olympus-tag.c 13 Nov 2007 02:31:23 -0000 1.14 +++ mnote-olympus-tag.c 31 Jan 2008 08:25:34 -0000 1.15 @@ -214,6 +214,10 @@ mnote_olympus_tag_get_description (Mnote 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; } |