summaryrefslogtreecommitdiff
path: root/xicc/xcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'xicc/xcal.c')
-rw-r--r--xicc/xcal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xicc/xcal.c b/xicc/xcal.c
index 06d343c..4400745 100644
--- a/xicc/xcal.c
+++ b/xicc/xcal.c
@@ -301,6 +301,9 @@ static int xcal_read(xcal *p, char *filename) {
return p->errc;
}
+ if (tcg->ntables < 1)
+ return 1;
+
rv = xcal_read_cgats(p, tcg, table, filename);
tcg->del(tcg);