diff options
author | David Robillard <d@drobilla.net> | 2008-03-19 14:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-03-19 14:22:42 +0000 |
commit | ca0ea9f5758a6ae27684888d2e33e801e5dfe682 (patch) | |
tree | 7961037992bb31b5927505d3b8f53257ab924505 /src/value.c | |
parent | 49ddf1af831493cb34a44c35781f3323916314af (diff) | |
download | lilv-ca0ea9f5758a6ae27684888d2e33e801e5dfe682.tar.gz lilv-ca0ea9f5758a6ae27684888d2e33e801e5dfe682.tar.bz2 lilv-ca0ea9f5758a6ae27684888d2e33e801e5dfe682.zip |
Support plugins where lv2:binary is not in manifest.ttl
git-svn-id: http://svn.drobilla.net/lad/slv2@1174 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/value.c b/src/value.c index f1d2731..6eeef04 100644 --- a/src/value.c +++ b/src/value.c @@ -122,6 +122,9 @@ slv2_value_new_librdf_node(SLV2World world, librdf_node* node) SLV2Value slv2_value_new_librdf_uri(SLV2World world, librdf_uri* uri) { + if (!uri) + return NULL; + SLV2Value val = (SLV2Value)malloc(sizeof(struct _SLV2Value)); val->type = SLV2_VALUE_URI; val->val.uri_val = librdf_new_uri_from_uri(uri); |