summaryrefslogtreecommitdiff
path: root/fitz/dev_null.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-09-21 00:11:22 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-09-21 00:11:22 +0200
commit69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (patch)
treeb7f82296a259d360ce90f0826e475321d630a222 /fitz/dev_null.c
parent99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (diff)
downloadmupdf-69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c.tar.xz
Don't thread ctx through safe fz_obj functions.
Diffstat (limited to 'fitz/dev_null.c')
-rw-r--r--fitz/dev_null.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fitz/dev_null.c b/fitz/dev_null.c
index 394f8374..dc6105f4 100644
--- a/fitz/dev_null.c
+++ b/fitz/dev_null.c
@@ -3,7 +3,8 @@
fz_device *
fz_new_device(fz_context *ctx, void *user)
{
- fz_device *dev = fz_calloc(ctx, 1, sizeof(fz_device));
+ fz_device *dev = fz_malloc(ctx, sizeof(fz_device));
+ memset(dev, 0, sizeof *dev);
dev->hints = 0;
dev->flags = 0;
dev->user = user;