aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-memory.c')
-rw-r--r--e-util/e-memory.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/e-memory.c b/e-util/e-memory.c
index c3f7bfde15..2a3cd55771 100644
--- a/e-util/e-memory.c
+++ b/e-util/e-memory.c
@@ -135,6 +135,16 @@ void *e_memchunk_alloc(MemChunk *m)
}
}
+void *e_memchunk_alloc0(EMemChunk *m)
+{
+ void *mem;
+
+ mem = e_memchunk_alloc(m);
+ memset(mem, 0, m->atomsize);
+
+ return mem;
+}
+
/**
* e_memchunk_free:
* @m: