diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2017-09-05 12:16:38 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2017-09-05 12:16:38 +0100 |
commit | 463854833474dc3ae642e17707e50c451ada1fec (patch) | |
tree | 90ca7eb6354d404eb9ef8bd59838425dd02278f2 | |
parent | aa75f905024bdf13882c30e543d64e285e22aad1 (diff) | |
download | ghostpdl-463854833474dc3ae642e17707e50c451ada1fec.tar.gz |
Coverity ID 94994
Check a return value and action it.
-rw-r--r-- | base/gxp1fill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/gxp1fill.c b/base/gxp1fill.c index c9596a060..33e5ade96 100644 --- a/base/gxp1fill.c +++ b/base/gxp1fill.c @@ -331,8 +331,11 @@ tile_pattern_clist(const tile_fill_state_t * ptfs, crdev->page_info.io_procs->rewind(crdev->page_info.cfile, false, NULL); clist_render_init(cdev); /* Check for and get ICC profile table */ - if (crdev->icc_table == NULL) + if (crdev->icc_table == NULL) { code = clist_read_icctable(crdev); + if (code < 0) + return code; + } /* Also allocate the icc cache for the clist reader */ if ( crdev->icc_cache_cl == NULL ) crdev->icc_cache_cl = gsicc_cache_new(crdev->memory->thread_safe_memory); |