From 094535c010320967639e8e86f974d878e80baa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 1 May 2015 16:13:57 +0200 Subject: Imported Upstream version 1.7.0 --- xicc/xcal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xicc/xcal.c') 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); -- cgit v1.2.3