From 796f4da5a66c7bb1df4b4746113fdf3d96a740e5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 26 Sep 2017 12:47:09 +0100 Subject: Use abort instead of NULL function to crash. --- source/fitz/draw-blend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source') diff --git a/source/fitz/draw-blend.c b/source/fitz/draw-blend.c index 6413dd7c..e468690a 100644 --- a/source/fitz/draw-blend.c +++ b/source/fitz/draw-blend.c @@ -1051,7 +1051,6 @@ verify_premultiply(fz_context *ctx, const fz_pixmap * restrict dst) int n = dst->n; int x, y, i; int s = dst->stride - n * w; - void (*crash)(void) = NULL; for (y = h; y > 0; y--) { @@ -1060,7 +1059,7 @@ verify_premultiply(fz_context *ctx, const fz_pixmap * restrict dst) int a = dp[n-1]; for (i = n-1; i > 0; i--) if (*dp++ > a) - crash(); + abort(); dp++; } dp += s; -- cgit v1.2.3