Update of /cvsroot/libexif/libexif/libexif
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1094/libexif
Modified Files:
exif-entry.c
Log Message:
Make sure to initialize every tag entry to something sane, even if the specific
tag isn't known.
Index: exif-entry.c
===================================================================
RCS file: /cvsroot/libexif/libexif/libexif/exif-entry.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -p -d -r1.113 -r1.114
--- exif-entry.c 9 Jan 2008 13:19:41 -0000 1.113
+++ exif-entry.c 24 Jan 2008 21:45:35 -0000 1.114
@@ -1375,8 +1375,10 @@ exif_entry_initialize (ExifEntry *e, Exi
break;
/* UNDEFINED, no components, no default */
+ /* Use this if the tag is otherwise unsupported */
case EXIF_TAG_MAKER_NOTE:
case EXIF_TAG_USER_COMMENT:
+ default:
e->components = 0;
e->format = EXIF_FORMAT_UNDEFINED;
e->size = 0;
@@ -1422,8 +1424,5 @@ exif_entry_initialize (ExifEntry *e, Exi
if (!e->data) break;
memcpy (e->data, "0210", 4);
break;
-
- default:
- break;
}
}
|