summaryrefslogtreecommitdiff
path: root/cgats/cgats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgats/cgats.c')
-rw-r--r--cgats/cgats.c4
1 files changed, 4 insertions, 0 deletions
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;
}