diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 13:58:07 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 14:00:55 +0100 |
commit | 977ad5326276de29f0b2ae212a1cb4c09d8d94e0 (patch) | |
tree | c3b4a55e14117c9efdddecb631736d3a307579c2 /draw/draw_device.c | |
parent | d5b9e3c95500c159a2dfc40657ab95da5f2777dd (diff) | |
download | mupdf-977ad5326276de29f0b2ae212a1cb4c09d8d94e0.tar.xz |
Make fz_malloc_struct return zeroed memory.
Diffstat (limited to 'draw/draw_device.c')
-rw-r--r-- | draw/draw_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c index 63c2bc32..03e5d268 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -1567,8 +1567,6 @@ fz_new_draw_device(fz_context *ctx, fz_pixmap *dest) fz_device *dev = NULL; fz_draw_device *ddev = fz_malloc_struct(ctx, fz_draw_device); - memset(ddev, 0, sizeof(*ddev)); - fz_var(dev); fz_try(ctx) { |