diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-08-17 11:40:02 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-08-17 16:09:07 +0200 |
commit | a7082a9f106dae35d4b47aa1c9e35af219a216d9 (patch) | |
tree | 1a451b2720a9546dedd031f31de6fbb8a2bdefc8 /source | |
parent | e994452487eb136ba0a1d9211fe02255bd6e7d30 (diff) | |
download | mupdf-a7082a9f106dae35d4b47aa1c9e35af219a216d9.tar.xz |
Remove redundant NULL check.
fz_colorspace.name is an array, not a pointer, so will never be NULL.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/colorspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index 82c7c230..99aee398 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -3330,7 +3330,7 @@ int fz_colorspace_n(fz_context *ctx, const fz_colorspace *cs) const char *fz_colorspace_name(fz_context *ctx, const fz_colorspace *cs) { - return cs && cs->name ? cs->name : ""; + return cs ? cs->name : ""; } static void |