summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/node.c b/src/node.c
index e410a11..918bdd0 100644
--- a/src/node.c
+++ b/src/node.c
@@ -105,6 +105,13 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
result->val.uri_val = sord_node_copy(node);
result->str_val = (char*)sord_node_get_string(result->val.uri_val);
break;
+ case SORD_BLANK:
+ result = malloc(sizeof(struct LilvNodeImpl));
+ result->world = (LilvWorld*)world;
+ result->type = LILV_VALUE_BLANK;
+ result->val.uri_val = sord_node_copy(node);
+ result->str_val = (char*)sord_node_get_string(result->val.uri_val);
+ break;
case SORD_LITERAL:
datatype_uri = sord_node_get_datatype(node);
if (datatype_uri) {
@@ -129,10 +136,6 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
break;
}
break;
- case SORD_BLANK:
- result = lilv_node_new(world, LILV_VALUE_BLANK,
- (const char*)sord_node_get_string(node));
- break;
default:
assert(false);
}