summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2013-07-29 14:19:28 +0200
committerMarti Maria <info@littlecms.com>2013-07-29 14:19:28 +0200
commit347ee35613f1cedd676bd066cfa91092144c4173 (patch)
tree5b6e453d0f9fc1361a00033e19148dd8072b8806
parent8928bed23ce565a5c91ab70efa076cdf1c40f0c8 (diff)
downloadlcms2-347ee35613f1cedd676bd066cfa91092144c4173.tar.gz
Removed an unnecessary assert
-rw-r--r--src/cmsio0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmsio0.c b/src/cmsio0.c
index 180eee7..6e3fee1 100644
--- a/src/cmsio0.c
+++ b/src/cmsio0.c
@@ -1233,7 +1233,6 @@ cmsUInt32Number CMSEXPORT cmsSaveProfileToIOhandler(cmsHPROFILE hProfile, cmsIOH
cmsContext ContextID;
_cmsAssert(hProfile != NULL);
- _cmsAssert(io != NULL);
memmove(&Keep, Icc, sizeof(_cmsICCPROFILE));
@@ -1251,6 +1250,7 @@ cmsUInt32Number CMSEXPORT cmsSaveProfileToIOhandler(cmsHPROFILE hProfile, cmsIOH
// Pass #2 does save to iohandler
if (io != NULL) {
+
Icc ->IOhandler = io;
if (!SetLinks(Icc)) goto CleanUp;
if (!_cmsWriteHeader(Icc, UsedSpace)) goto CleanUp;