summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmstypes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmstypes.c b/src/cmstypes.c
index 462e85c..5fd702f 100644
--- a/src/cmstypes.c
+++ b/src/cmstypes.c
@@ -4939,6 +4939,13 @@ cmsBool ReadOneMLUC(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, _cm
{
cmsUInt32Number nItems = 0;
+ // A way to get null MLUCs
+ if (e -> Sizes[i] == 0) {
+
+ *mlu = NULL;
+ return TRUE;
+ }
+
if (!io -> Seek(io, e -> Offsets[i])) return FALSE;
*mlu = (cmsMLU*) Type_MLU_Read(self, io, &nItems, e ->Sizes[i]);