aboutsummaryrefslogtreecommitdiff
path: root/libexif/pentax/exif-mnote-data-pentax.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexif/pentax/exif-mnote-data-pentax.c')
-rw-r--r--libexif/pentax/exif-mnote-data-pentax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexif/pentax/exif-mnote-data-pentax.c b/libexif/pentax/exif-mnote-data-pentax.c
index b4722d6..3676563 100644
--- a/libexif/pentax/exif-mnote-data-pentax.c
+++ b/libexif/pentax/exif-mnote-data-pentax.c
@@ -443,6 +443,8 @@ exif_mnote_data_pentax_new (ExifMem *mem)
d = exif_mem_alloc (mem, sizeof (ExifMnoteDataPentax));
if (!d) return NULL;
+ memset(d, 0, sizeof(ExifMnoteDataPentax));
+
exif_mnote_data_construct (d, mem);
/* Set up function pointers */