diff options
Diffstat (limited to 'psi/zicc.c')
-rw-r--r-- | psi/zicc.c | 4 |
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 */ |