From 38eb5490c4d96886088d24e124cf87b5f5179393 Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Fri, 9 Dec 2016 10:22:29 +0100 Subject: [PATCH] image.c: fz_get_pixmap_from_image() use NULLs instead of 0s fz_get_pixmap_from_image() last two arguments expects `int *' pointers. Use NULLs instead of 0s to avoid possible confusion of these two optional arguments. No functional changes intended. --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index b938e5c..d3c2283 100644 --- a/image.c +++ b/image.c @@ -93,7 +93,7 @@ pdf_page_image_get_cairo(zathura_page_t* page, mupdf_page_t* mupdf_page, fz_pixmap* pixmap = NULL; cairo_surface_t* surface = NULL; - pixmap = fz_get_pixmap_from_image(mupdf_page->ctx, mupdf_image, NULL, NULL, 0, 0); + pixmap = fz_get_pixmap_from_image(mupdf_page->ctx, mupdf_image, NULL, NULL, NULL, NULL); if (pixmap == NULL) { goto error_free; } -- 2.11.0