From 93c86e7b19dd804d508ccdd0deaa7a2d76917a6b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Mar 2013 22:18:21 +0000 Subject: Fix crash when running "jalv" with bad command line arguments. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5098 a436a847-0d15-0410-975c-d299462d15a1 --- NEWS | 6 ++++++ src/jalv_console.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4a38cbf..ebd0359 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +jalv (1.4.1) unstable; + + * Fix crash when running "jalv" with bad command line arguments + + -- David Robillard Sun, 24 Mar 2013 18:18:08 -0400 + jalv (1.4.0) stable; * Send time information to plugin when Jack tempo changes diff --git a/src/jalv_console.c b/src/jalv_console.c index 905332f..0fb3125 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -56,7 +56,7 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts) int a = 1; for (; a < *argc && (*argv)[a][0] == '-'; ++a) { if ((*argv)[a][1] == 'h') { - return print_usage((*argv)[0], false); + return print_usage((*argv)[0], true); } else if ((*argv)[a][1] == 'u') { if (++a == *argc) { fprintf(stderr, "Missing argument for -u\n"); -- cgit v1.2.1