aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-03-04 14:41:16 -0600
committertlatorre <tlatorre@uchicago.edu>2019-03-04 14:41:16 -0600
commit2ba0b90669feb760ff8cd89d72ed34a44293b886 (patch)
tree749d3cf6085524dcbb8f7c6b11aa2f787e51634e /src
parenta3cd5870c7e88dacbca671909af798d6dbb692fe (diff)
downloadsddm-2ba0b90669feb760ff8cd89d72ed34a44293b886.tar.gz
sddm-2ba0b90669feb760ff8cd89d72ed34a44293b886.tar.bz2
sddm-2ba0b90669feb760ff8cd89d72ed34a44293b886.zip
skip logical record if there is no EV bank
In the processed zdab files (the SNOCR_* files), the first logical record just has a run header bank and no EV bank.
Diffstat (limited to 'src')
-rw-r--r--src/fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fit.c b/src/fit.c
index 0fd6f98..e292298 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -6135,8 +6135,8 @@ int main(int argc, char **argv)
skip_mc:
if (bmast.links[KMAST_EV-1] == 0) {
- fprintf(stderr, "EV link is zero!\n");
- goto err;
+ /* First logical record in SNOCR files doesn't have an EV bank. */
+ continue;
}
rv = zebra_get_bank(f,&b,bmast.links[KMAST_EV-1]);