diff options
author | David Robillard <d@drobilla.net> | 2013-02-10 08:56:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-10 08:56:33 +0000 |
commit | 36c22be51af07fc96a9168684949b82b8f6e325c (patch) | |
tree | 0cbdde26bbcd2d94727dd87ba61e2e7975eb9bc2 /src/node.c | |
parent | 1ad20b172af88a909991289e6a11c8cc7934a875 (diff) | |
download | lilv-36c22be51af07fc96a9168684949b82b8f6e325c.tar.gz lilv-36c22be51af07fc96a9168684949b82b8f6e325c.tar.bz2 lilv-36c22be51af07fc96a9168684949b82b8f6e325c.zip |
Add lilv_world_ask() for easily checking if a statement exists.
Add lilv_world_get() and lilv_port_get() for easily getting one value.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5053 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -92,6 +92,10 @@ lilv_node_new(LilvWorld* world, LilvNodeType type, const char* str) LilvNode* lilv_node_new_from_node(LilvWorld* world, const SordNode* node) { + if (!node) { + return NULL; + } + LilvNode* result = NULL; SordNode* datatype_uri = NULL; LilvNodeType type = LILV_VALUE_STRING; |