summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-09-26 12:47:09 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:37 +0100
commit796f4da5a66c7bb1df4b4746113fdf3d96a740e5 (patch)
tree8053241b30919cecc80999403d41e0e14e5f6347 /source/fitz
parent6a92b90ac4c581c1d7c2c1322ece0e99e920e3df (diff)
downloadmupdf-796f4da5a66c7bb1df4b4746113fdf3d96a740e5.tar.xz
Use abort instead of NULL function to crash.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/draw-blend.c3
1 files changed, 1 insertions, 2 deletions
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;