From 914900f42d027778506cde4281cb495afeea09e6 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 1 Oct 2018 20:09:26 +0800 Subject: Avoid fz_var declaration of variable. --- source/tests/mu-office-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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) -- cgit v1.2.3