aboutsummaryrefslogtreecommitdiff
path: root/src/zdab-cat.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-20 11:12:26 -0500
committertlatorre <tlatorre@uchicago.edu>2019-06-20 11:12:26 -0500
commite8b9707ab835050bd0132722cede42b3b0601744 (patch)
tree19504d87b27c68f53b61a9fc9f5d43fa3944fc9d /src/zdab-cat.c
parentbdf428c0203b44253fc6bd38e14d0ccc228d7b3b (diff)
downloadsddm-e8b9707ab835050bd0132722cede42b3b0601744.tar.gz
sddm-e8b9707ab835050bd0132722cede42b3b0601744.tar.bz2
sddm-e8b9707ab835050bd0132722cede42b3b0601744.zip
fix empty list at top of YAML output in zdab-cat
Diffstat (limited to 'src/zdab-cat.c')
-rw-r--r--src/zdab-cat.c10
1 files 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) {