diff options
author | David Robillard <d@drobilla.net> | 2008-04-29 23:29:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-04-29 23:29:10 +0000 |
commit | 7710f68e240a2454ba68cf23872065ca9ec500fe (patch) | |
tree | ba7606849b3d810f27b82a92992897dc70296aff /src/world.c | |
parent | 014d957c0da362f4036af90d3328adb3aa7f15a9 (diff) | |
download | lilv-7710f68e240a2454ba68cf23872065ca9ec500fe.tar.gz lilv-7710f68e240a2454ba68cf23872065ca9ec500fe.tar.bz2 lilv-7710f68e240a2454ba68cf23872065ca9ec500fe.zip |
Fix librdf assertion failures on plugins where no binary is found.
git-svn-id: http://svn.drobilla.net/lad/slv2@1182 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c index 9356579..bebf540 100644 --- a/src/world.c +++ b/src/world.c @@ -528,7 +528,7 @@ slv2_world_load_all(SLV2World world) librdf_node* bundle_node = librdf_query_results_get_binding_value(results, 2); librdf_uri* bundle_uri = librdf_node_get_uri(bundle_node); librdf_node* binary_node = librdf_query_results_get_binding_value(results, 3); - librdf_uri* binary_uri = librdf_node_get_uri(binary_node); + librdf_uri* binary_uri = binary_node ? librdf_node_get_uri(binary_node) : NULL; assert(plugin_uri); assert(data_uri); @@ -558,7 +558,8 @@ slv2_world_load_all(SLV2World world) librdf_free_node(plugin_node); librdf_free_node(data_node); librdf_free_node(bundle_node); - librdf_free_node(binary_node); + if (binary_node) + librdf_free_node(binary_node); librdf_query_results_next(results); } |