Update of /cvsroot/libexif/libexif/libexif/pentax
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21727/libexif/libexif/pentax
Modified Files:
mnote-pentax-tag.c
Log Message:
Please don't crash in mnote_pentax_tag_get_description & mnote_olympus_tag_get_description
on unknown tags.
Index: mnote-pentax-tag.c
===================================================================
RCS file: /cvsroot/libexif/libexif/libexif/pentax/mnote-pentax-tag.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -d -r1.11 -r1.12
--- mnote-pentax-tag.c 17 Feb 2008 18:31:57 -0000 1.11
+++ mnote-pentax-tag.c 20 Oct 2008 07:52:43 -0000 1.12
@@ -104,7 +104,7 @@ 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) {
- if (!*table[i].description)
+ if (!table[i].description || !*table[i].description)
return "";
return (_(table[i].description));
}
|