summaryrefslogtreecommitdiff
path: root/pdf/pdf_function.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-03 13:58:07 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-03 14:00:55 +0100
commit977ad5326276de29f0b2ae212a1cb4c09d8d94e0 (patch)
treec3b4a55e14117c9efdddecb631736d3a307579c2 /pdf/pdf_function.c
parentd5b9e3c95500c159a2dfc40657ab95da5f2777dd (diff)
downloadmupdf-977ad5326276de29f0b2ae212a1cb4c09d8d94e0.tar.xz
Make fz_malloc_struct return zeroed memory.
Diffstat (limited to 'pdf/pdf_function.c')
-rw-r--r--pdf/pdf_function.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c
index 8d1be207..ff602021 100644
--- a/pdf/pdf_function.c
+++ b/pdf/pdf_function.c
@@ -1365,7 +1365,6 @@ pdf_load_function(pdf_document *xref, fz_obj *dict)
}
func = fz_malloc_struct(ctx, pdf_function);
- memset(func, 0, sizeof *func);
FZ_INIT_STORABLE(func, 1, pdf_free_function_imp);
func->size = sizeof(*func);