From 9c18548a508702262028c2dccb5af84fb1a8d50d Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Sat, 13 Jan 2001 00:23:44 +0000 Subject: [PATCH] disallow --skip in test mode --- src/flac/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/flac/main.c b/src/flac/main.c index 4646a7e5..082ed659 100644 --- a/src/flac/main.c +++ b/src/flac/main.c @@ -196,7 +196,11 @@ int main(int argc, char *argv[]) } } else { - if(!test_only) { + if(test_only) { + if(skip > 0) + return usage("ERROR: --skip is not allowed in test mode\n"); + } + else { if(format_is_wave < 0) { if(strstr(argv[i+1], ".wav") == argv[i+1] + (strlen(argv[i+1]) - strlen(".wav"))) format_is_wave = true;