From 842e254ee7446fe117fcfbd65ad23fc8b977c2ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Mar 2015 01:33:05 +0000 Subject: Fix lilv_world_ask() to work with wildcards. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5645 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/world.c b/src/world.c index a25d810..02dbeec 100644 --- a/src/world.c +++ b/src/world.c @@ -235,8 +235,11 @@ lilv_world_ask(LilvWorld* world, const LilvNode* predicate, const LilvNode* object) { - return sord_ask( - world->model, subject->node, predicate->node, object->node, NULL); + return sord_ask(world->model, + subject ? subject->node : NULL, + predicate ? predicate->node : NULL, + object ? object->node : NULL, + NULL); } SordModel* -- cgit v1.2.1