diff options
author | David Robillard <d@drobilla.net> | 2011-01-31 00:41:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-31 00:41:06 +0000 |
commit | d716c6d5e7c622d238d460a32ad7d02845fbc4d4 (patch) | |
tree | dce6145cf6bd9c03eb7904def4194af55568d53c /src/value.c | |
parent | 8ab85a31c348a40858752a035a14ccb6df5fd6c2 (diff) | |
download | lilv-d716c6d5e7c622d238d460a32ad7d02845fbc4d4.tar.gz lilv-d716c6d5e7c622d238d460a32ad7d02845fbc4d4.tar.bz2 lilv-d716c6d5e7c622d238d460a32ad7d02845fbc4d4.zip |
Replace more librdf_uri.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2881 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/value.c b/src/value.c index 4799186..b1e141c 100644 --- a/src/value.c +++ b/src/value.c @@ -146,14 +146,11 @@ slv2_value_new_librdf_node(SLV2World world, librdf_node* node) SLV2Value slv2_value_new_librdf_uri(SLV2World world, librdf_node* node) { - assert(node); - assert(librdf_node_is_resource(node)); - librdf_uri* uri = librdf_node_get_uri(node); - assert(uri); + assert(node && librdf_node_is_resource(node)); SLV2Value val = (SLV2Value)malloc(sizeof(struct _SLV2Value)); - val->type = SLV2_VALUE_URI; - val->val.uri_val = librdf_new_uri_from_uri(uri); - val->str_val = (char*)librdf_uri_as_string(val->val.uri_val); + val->type = SLV2_VALUE_URI; + val->val.uri_val = librdf_new_uri_from_uri(librdf_node_get_uri(node)); + val->str_val = (char*)librdf_uri_as_string(val->val.uri_val); return val; } |