summaryrefslogtreecommitdiff
path: root/psi/zicc.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2016-04-22 13:17:35 +0100
committerKen Sharp <ken.sharp@artifex.com>2016-04-22 13:17:35 +0100
commit3204fa03a809db3d8ff26d629012096ff1aecef6 (patch)
tree6191e8d45c2810f1b82e4051bb5c702bbefc342b /psi/zicc.c
parentbffaddf2c2c1d3f0a52e205cf33c9023a779ace7 (diff)
downloadghostpdl-3204fa03a809db3d8ff26d629012096ff1aecef6.tar.gz
Coverity ID 94977 - check and action 2 return codes
Diffstat (limited to 'psi/zicc.c')
-rw-r--r--psi/zicc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/psi/zicc.c b/psi/zicc.c
index 3e46b9912..dac976954 100644
--- a/psi/zicc.c
+++ b/psi/zicc.c
@@ -245,7 +245,11 @@ zset_outputintent(i_ctx_t * i_ctx_p)
code = dev_proc(dev, get_profile)(dev, &dev_profile);
if (dev_profile == NULL) {
code = gsicc_init_device_profile_struct(dev, NULL, 0);
+ if (code < 0)
+ return code;
code = dev_proc(dev, get_profile)(dev, &dev_profile);
+ if (code < 0)
+ return code;
}
if (dev_profile->oi_profile != NULL) {
return 0; /* Allow only one setting of this object */