Mercurial > hg > sidinfo
comparison sidinfo.c @ 142:da29f147afcb
Better check for number of songlengths.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Jun 2017 09:31:57 +0300 |
parents | 71725be55ed1 |
children | e481947fd051 |
comparison
equal
deleted
inserted
replaced
141:71725be55ed1 | 142:da29f147afcb |
---|---|
531 siPrintFieldSeparator(outFile); | 531 siPrintFieldSeparator(outFile); |
532 } | 532 } |
533 break; | 533 break; |
534 | 534 |
535 case 22: | 535 case 22: |
536 if (psid->lengths != NULL) | 536 if (psid->lengths != NULL && psid->lengths->nlengths > 0) |
537 { | 537 { |
538 int i; | 538 int i; |
539 siPrintFieldPrefix(outFile, opt); | 539 siPrintFieldPrefix(outFile, opt); |
540 for (i = 0; i < psid->lengths->nlengths; i++) | 540 for (i = 0; i < psid->lengths->nlengths; i++) |
541 { | 541 { |