summaryrefslogtreecommitdiff
path: root/girepository/gthash.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/gthash.c')
-rw-r--r--girepository/gthash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/gthash.c b/girepository/gthash.c
index ecc3b104..831c87e9 100644
--- a/girepository/gthash.c
+++ b/girepository/gthash.c
@@ -158,6 +158,8 @@ _gi_typelib_hash_builder_pack (GITypelibHashBuilder *builder, guint8* mem, guint
g_assert (len >= builder->packed_size);
g_assert ((((unsigned long)mem) & 0x3) == 0);
+ memset (mem, 0, len);
+
*((guint32*) mem) = builder->dirmap_offset;
packed_mem = (guint8*)(mem + sizeof(guint32));
cmph_pack (builder->c, packed_mem);