From e026b19c22ab91d951b912ce1db252fcbd974943 Mon Sep 17 00:00:00 2001 From: Scott Allen Date: Sat, 24 Sep 2016 22:51:23 -0400 Subject: [PATCH] Give proper error message for missing base name --- miditones.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miditones.c b/miditones.c index b870fb9..d291166 100644 --- a/miditones.c +++ b/miditones.c @@ -1006,6 +1006,11 @@ int main (int argc, char *argv[]) { /* process options */ argno = HandleOptions (argc, argv); + if (argno == 0) { + fprintf (stderr, "\n*** No basefilename given\n\n"); + SayUsage (argv[0]); + exit (4); + } filebasename = argv[argno]; /* Open the log file */