summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-10 23:44:54 +0000
committerDavid Robillard <d@drobilla.net>2008-12-10 23:44:54 +0000
commitfc966d616321724e813f25d03b1e5ebac105d50b (patch)
tree2d2a2892fb5c9a5765a203bbf73d135106e79de8
parent665556f5edbc628747dd9d9d901c08fe068644ed (diff)
downloadlilv-fc966d616321724e813f25d03b1e5ebac105d50b.tar.gz
lilv-fc966d616321724e813f25d03b1e5ebac105d50b.tar.bz2
lilv-fc966d616321724e813f25d03b1e5ebac105d50b.zip
Fix crash in slv2_plugin_verify (fix ticket #291).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1848 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 4c8dbd8..3a1f3a8 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -333,12 +333,11 @@ slv2_plugin_verify(SLV2Plugin plugin)
while (!librdf_query_results_finished(results)) {
librdf_node* type_node = librdf_query_results_get_binding_value(results, 0);
- const char* const type_str = (const char*)librdf_node_get_literal_value(type_node);
librdf_node* name_node = librdf_query_results_get_binding_value(results, 1);
librdf_node* license_node = librdf_query_results_get_binding_value(results, 2);
librdf_node* port_node = librdf_query_results_get_binding_value(results, 3);
- if (!strcmp(type_str, "http://lv2plug.in/ns/lv2core#Plugin"))
+ if (librdf_node_get_type(type_node) == LIBRDF_NODE_TYPE_RESOURCE)
has_type = true;
if (name_node)