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 --- cgats/cgats.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cgats') diff --git a/cgats/cgats.c b/cgats/cgats.c index 84ff2c9..a39ec04 100644 --- a/cgats/cgats.c +++ b/cgats/cgats.c @@ -769,6 +769,10 @@ cgats_read(cgats *p, cgatsFile *fp) { } pp->del(pp); /* Clean up the parse file */ + + if (p->ntables == 0) + return -1; /* Failed to load any table */ + return 0; } -- cgit v1.2.3