summaryrefslogtreecommitdiff
path: root/source/fitz/colorspace.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-17 11:40:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-17 16:09:07 +0200
commita7082a9f106dae35d4b47aa1c9e35af219a216d9 (patch)
tree1a451b2720a9546dedd031f31de6fbb8a2bdefc8 /source/fitz/colorspace.c
parente994452487eb136ba0a1d9211fe02255bd6e7d30 (diff)
downloadmupdf-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/fitz/colorspace.c')
-rw-r--r--source/fitz/colorspace.c2
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