diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-07-27 21:34:19 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-07-27 21:34:46 +0800 |
commit | 7a0877e9a51fb425389ab2eb3a55ba4036999771 (patch) | |
tree | 64bb15f47628dfd1982ba10485441a114861488f /source/pdf | |
parent | f7f89d9d0073e583bc78e6a5d4fc55a533caa566 (diff) | |
download | mupdf-7a0877e9a51fb425389ab2eb3a55ba4036999771.tar.xz |
Remove unnecessary check of colorspace pointer.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-colorspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c index 934a5a46..9783d65a 100644 --- a/source/pdf/pdf-colorspace.c +++ b/source/pdf/pdf-colorspace.c @@ -206,7 +206,7 @@ load_devicen(fz_context *ctx, pdf_obj *array) cs = fz_new_colorspace(ctx, colorspace_name, n, 1, 1, fz_colorspace_is_icc(ctx, fz_device_rgb(ctx)) ? devicen_to_alt : devicen_to_rgb, NULL, base_devicen, NULL, free_devicen, devn, - sizeof(struct devicen) + (base ? base->size : 0) + pdf_function_size(ctx, tint)); + sizeof(struct devicen) + base->size + pdf_function_size(ctx, tint)); devn = NULL; if (pdf_is_array(ctx, nameobj)) |