summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
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);