summaryrefslogtreecommitdiff
path: root/base/gsicc_cache.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2019-04-23 21:32:00 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2019-04-24 07:16:41 -0700
commit8881a51d55df7df70f4e0083be8569e09213dfba (patch)
tree8846bfb915f33ea49c60e0331d53e43c3651e44a /base/gsicc_cache.c
parent7f34ef8c946be47d5a5dcc412b3da608a0066c44 (diff)
downloadghostpdl-8881a51d55df7df70f4e0083be8569e09213dfba.tar.gz
Fix several warnings and issues from last commit.
Diffstat (limited to 'base/gsicc_cache.c')
-rw-r--r--base/gsicc_cache.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/base/gsicc_cache.c b/base/gsicc_cache.c
index 348c982ab..abb33af6b 100644
--- a/base/gsicc_cache.c
+++ b/base/gsicc_cache.c
@@ -1571,7 +1571,6 @@ gsicc_transform_named_color(const float tint_values[],
gsicc_namedcolortable_t *namedcolor_table;
int num_nonnone_names;
uint k,j,n;
- float lab[3];
int code;
bool found_match;
unsigned short psrc[GS_CLIENT_COLOR_MAX_COMPONENTS];
@@ -1601,15 +1600,11 @@ gsicc_transform_named_color(const float tint_values[],
code = create_named_profile(nongc_mem, named_profile);
if (code < 0)
return -1;
- } else {
- if (named_profile->profile_handle != NULL ) {
- namedcolor_table =
- (gsicc_namedcolortable_t*) named_profile->profile_handle;
- num_entries = namedcolor_table->number_entries;
- } else {
- return -1;
- }
}
+ namedcolor_table =
+ (gsicc_namedcolortable_t*)named_profile->profile_handle;
+ num_entries = namedcolor_table->number_entries;
+
/* Go through each of our spot names, getting the color value for
each one. */
num_nonnone_names = num_names;