summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/query.c b/src/query.c
index e9121e3..085ed04 100644
--- a/src/query.c
+++ b/src/query.c
@@ -38,9 +38,9 @@ slv2_plugin_find_statements(SLV2Plugin plugin,
slv2_plugin_load_if_necessary(plugin);
librdf_statement* q = librdf_new_statement_from_nodes(
plugin->world->world,
- subject ? librdf_new_node_from_node(subject) : NULL,
- predicate ? librdf_new_node_from_node(predicate) : NULL,
- object ? librdf_new_node_from_node(object) : NULL);
+ subject ? slv2_node_copy(subject) : NULL,
+ predicate ? slv2_node_copy(predicate) : NULL,
+ object ? slv2_node_copy(object) : NULL);
librdf_stream* results = librdf_model_find_statements(plugin->rdf, q);
librdf_free_statement(q);
return results;