From 2ba0b90669feb760ff8cd89d72ed34a44293b886 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 4 Mar 2019 14:41:16 -0600 Subject: 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. --- src/fit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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]); -- cgit