summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-28 01:33:05 +0000
committerDavid Robillard <d@drobilla.net>2015-03-28 01:33:05 +0000
commit842e254ee7446fe117fcfbd65ad23fc8b977c2ca (patch)
tree90dd3d926cdddf7967f02fc2d4e31e08f6558b39 /src/world.c
parent247f986d450cc628725630ed0354f18e40b4e18d (diff)
downloadlilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.tar.gz
lilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.tar.bz2
lilv-842e254ee7446fe117fcfbd65ad23fc8b977c2ca.zip
Fix lilv_world_ask() to work with wildcards.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5645 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c7
1 files changed, 5 insertions, 2 deletions
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*