summaryrefslogtreecommitdiff
path: root/pdf
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
parentd5b9e3c95500c159a2dfc40657ab95da5f2777dd (diff)
downloadmupdf-977ad5326276de29f0b2ae212a1cb4c09d8d94e0.tar.xz
Make fz_malloc_struct return zeroed memory.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_crypt.c1
-rw-r--r--pdf/pdf_function.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c
index c3cd5d8c..59423a38 100644
--- a/pdf/pdf_crypt.c
+++ b/pdf/pdf_crypt.c
@@ -54,7 +54,6 @@ pdf_new_crypt(fz_context *ctx, fz_obj *dict, fz_obj *id)
fz_obj *obj;
crypt = fz_malloc_struct(ctx, pdf_crypt);
- memset(crypt, 0, sizeof *crypt);
/* Common to all security handlers (PDF 1.7 table 3.18) */
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);