diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:13:57 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:13:57 +0200 |
commit | 094535c010320967639e8e86f974d878e80baa72 (patch) | |
tree | efc3094b20355dcbeebb2c4ece4fcfc69bffedb5 /cgats/cgats.c | |
parent | c07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (diff) |
Imported Upstream version 1.7.0upstream/1.7.0
Diffstat (limited to 'cgats/cgats.c')
-rw-r--r-- | cgats/cgats.c | 4 |
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; } |