changeset 253:c98be346c706

Check for subtune <= 0 instead of == 0.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 20:43:41 +0200
parents 9e45cb6f12a5
children cc6d8d47dbc2
files sidlib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sidlib.c	Sun Jan 05 20:11:59 2020 +0200
+++ b/sidlib.c	Sun Jan 05 20:43:41 2020 +0200
@@ -918,7 +918,7 @@
                     goto out;
                 }
 
-                if (subtune == 0 || subtune > 128)
+                if (subtune <= 0 || subtune > 128)
                 {
                     th_io_error(fh, THERR_INVALID_DATA,
                         "Entry '%s' subtune number %d is invalid on line #%d.",