diff options
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 561be6a677..263fed154d 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c | |||
@@ -139,7 +139,7 @@ static unsigned long parse_cue_index(const char *line) | |||
139 | while (isdigit(*line)) | 139 | while (isdigit(*line)) |
140 | { | 140 | { |
141 | value = 10 * value + (*line - '0'); | 141 | value = 10 * value + (*line - '0'); |
142 | if (value > field_max[field]) /* Sanity check bail early */ | 142 | if (field >= 0 && value > field_max[field]) /* Sanity check bail early */ |
143 | return 0; | 143 | return 0; |
144 | line++; | 144 | line++; |
145 | } | 145 | } |