summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 1c5cc4f..e410a11 100644
--- a/src/node.c
+++ b/src/node.c
@@ -99,7 +99,6 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
switch (sord_node_get_type(node)) {
case SORD_URI:
- type = LILV_VALUE_URI;
result = malloc(sizeof(struct LilvNodeImpl));
result->world = (LilvWorld*)world;
result->type = LILV_VALUE_URI;
@@ -131,8 +130,8 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
}
break;
case SORD_BLANK:
- type = LILV_VALUE_BLANK;
- result = lilv_node_new(world, type, (const char*)sord_node_get_string(node));
+ result = lilv_node_new(world, LILV_VALUE_BLANK,
+ (const char*)sord_node_get_string(node));
break;
default:
assert(false);