Made mnote_fuji_tag_get_description and
authorDan Fandrich <dan@coneharvesters.com>
Tue, 12 Jul 2011 07:04:16 +0000 (00:04 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 12 Jul 2011 07:04:16 +0000 (00:04 -0700)
mnote_canon_tag_get_descripton more robust should any NULL
descriptions be added to the table (bug #3307219)

ChangeLog
libexif/canon/mnote-canon-tag.c
libexif/fuji/mnote-fuji-tag.c

index 62964f8..6725b66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-07-11  Dan Fandrich <dan@coneharvesters.com>
+
+       * Made mnote_fuji_tag_get_description and
+         mnote_canon_tag_get_descripton more robust should any NULL
+         descriptions be added to the table (bug #3307219)
+
+2011-05-12  Dan Fandrich <dan@coneharvesters.com>
+
+       * Added more Canon lenses (from Adrian von Bidder and drochner)
+
 2011-02-16  Dan Fandrich <dan@coneharvesters.com>
 
        * Changed "knots" to more clear "nautical miles" (Ubuntu Launchpad bug
index 6ef73a4..3cacfa6 100644 (file)
@@ -192,7 +192,7 @@ mnote_canon_tag_get_description (MnoteCanonTag t)
 
        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 "";
                        bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
                        return _(table[i].description);
index 3200eb6..3b80597 100644 (file)
@@ -96,7 +96,7 @@ mnote_fuji_tag_get_description (MnoteFujiTag t)
 
        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 "";
                        bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
                        return _(table[i].description);