diff options
author | David Robillard <d@drobilla.net> | 2012-08-03 21:50:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-03 21:50:48 +0000 |
commit | cc1036cdaccdf4adf51aec62d88efc260a589109 (patch) | |
tree | 051f396c07576b0dd3ea9dfb900cd95415926fe6 /src | |
parent | f17015940a7a01c94ce93a7dd437d0fcff0261bd (diff) | |
download | jalv-cc1036cdaccdf4adf51aec62d88efc260a589109.tar.gz jalv-cc1036cdaccdf4adf51aec62d88efc260a589109.tar.bz2 jalv-cc1036cdaccdf4adf51aec62d88efc260a589109.zip |
Fix crash when invalid plugin URIs are used.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4614 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -881,8 +881,10 @@ main(int argc, char** argv) plugin_uri = lilv_node_duplicate(lilv_state_get_plugin_uri(state)); } else if (argc > 1) { plugin_uri = lilv_new_uri(world, argv[argc - 1]); - } else { - fprintf(stderr, "Missing plugin URI parameter\n"); + } + + if (!plugin_uri) { + fprintf(stderr, "Missing plugin URI, try lv2ls to list plugins\n"); return EXIT_FAILURE; } |