diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-10-01 20:09:26 +0800 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-10-23 18:46:01 +0200 |
commit | 914900f42d027778506cde4281cb495afeea09e6 (patch) | |
tree | e29917eefcd6b92ace803fe4d563f643d7dd85b3 | |
parent | a155151fdd3bbd4a82288430a4d61b86d85d53c3 (diff) | |
download | mupdf-914900f42d027778506cde4281cb495afeea09e6.tar.xz |
Avoid fz_var declaration of variable.
-rw-r--r-- | source/tests/mu-office-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tests/mu-office-test.c b/source/tests/mu-office-test.c index d729de88..796588bd 100644 --- a/source/tests/mu-office-test.c +++ b/source/tests/mu-office-test.c @@ -267,10 +267,10 @@ save_png(const MuOfficeBitmap *bitmap, const char *filename) exit(EXIT_FAILURE); } + pix = fz_new_pixmap_with_data(ctx, fz_device_rgb(ctx), bitmap->width, bitmap->height, NULL, 1, bitmap->lineSkip, bitmap->memptr); + fz_try(ctx) { - pix = fz_new_pixmap_with_data(ctx, fz_device_rgb(ctx), bitmap->width, bitmap->height, NULL, 1, bitmap->lineSkip, bitmap->memptr); - fz_save_pixmap_as_png(ctx, pix, filename); } fz_always(ctx) |