From e8b9707ab835050bd0132722cede42b3b0601744 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Thu, 20 Jun 2019 11:12:26 -0500 Subject: fix empty list at top of YAML output in zdab-cat --- src/zdab-cat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zdab-cat.c b/src/zdab-cat.c index a29d947..d661752 100644 --- a/src/zdab-cat.c +++ b/src/zdab-cat.c @@ -156,6 +156,11 @@ int main(int argc, char **argv) goto err; } + if (bmast.links[KMAST_EV-1] == 0) { + /* First logical record in SNOCR files doesn't have an EV bank. */ + continue; + } + if (fout) fprintf(fout, " -\n"); if (bmast.links[KMAST_MC-1] == 0) goto skip_mc; @@ -254,11 +259,6 @@ int main(int argc, char **argv) skip_mc: - if (bmast.links[KMAST_EV-1] == 0) { - /* First logical record in SNOCR files doesn't have an EV bank. */ - continue; - } - rv = zebra_get_bank(f,&b,bmast.links[KMAST_EV-1]); if (rv) { -- cgit