diff options
author | David Robillard <d@drobilla.net> | 2011-04-30 02:07:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-30 02:07:42 +0000 |
commit | 6c72abfc6d6649f07d85f70b25ce4393dc775a39 (patch) | |
tree | d87d8cc347a43b3b02d97caa6666848448c7e92c /src/instance.c | |
parent | 054c39b12cb610d79006f0b51153cb2c4aa5a0b7 (diff) | |
download | lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.gz lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.bz2 lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3241 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/instance.c b/src/instance.c index 717bdb6..c9a5d83 100644 --- a/src/instance.c +++ b/src/instance.c @@ -37,8 +37,9 @@ lilv_plugin_instantiate(const LilvPlugin* plugin, local_features[0] = NULL; } - const char* const lib_uri = lilv_node_as_uri(lilv_plugin_get_library_uri(plugin)); - const char* const lib_path = lilv_uri_to_path(lib_uri); + const LilvNode* const lib_uri_node = lilv_plugin_get_library_uri(plugin); + const char* const lib_uri = lilv_node_as_uri(lib_uri_node); + const char* const lib_path = lilv_uri_to_path(lib_uri); if (!lib_path) return NULL; @@ -70,7 +71,7 @@ lilv_plugin_instantiate(const LilvPlugin* plugin, LILV_ERRORF("Did not find plugin %s in %s\n", lilv_node_as_uri(lilv_plugin_get_uri(plugin)), lib_path); dlclose(lib); - break; // return NULL + break; // return NULL } else { // Parse bundle URI to use as base URI const LilvNode* bundle_uri = lilv_plugin_get_bundle_uri(plugin); |