From fc966d616321724e813f25d03b1e5ebac105d50b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 Dec 2008 23:44:54 +0000 Subject: 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 --- src/plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.1