ref: 2861bef3d4c7fd722cecc131c2d4453fc2e0718d
parent: d246d1ca85ced770d7ecadebead0576420c3eb7c
author: Christopher Snowhill <kode54@gmail.com>
date: Wed Sep 13 15:09:40 EDT 2017
Handle negative sample length as non-existent sample.
--- a/src/it/readpsm.c
+++ b/src/it/readpsm.c
@@ -96,7 +96,7 @@
if (insno != id) return -1;
- if (!length) {
+ if (length <= 0) {
sample->flags &= ~IT_SAMPLE_EXISTS;
return 0;
}