summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-07 23:41:25 -0400
committerDavid Robillard <d@drobilla.net>2016-07-07 23:41:25 -0400
commit26a2c3af0f244fa71ca19d7eff77eaff98914e6c (patch)
tree3f5daa8266f4aa543e8672057c304a5281bace91
parent4a1e47eb6ff69c2685feca73ba19700a99736b59 (diff)
downloadlilv-26a2c3af0f244fa71ca19d7eff77eaff98914e6c.tar.gz
lilv-26a2c3af0f244fa71ca19d7eff77eaff98914e6c.tar.bz2
lilv-26a2c3af0f244fa71ca19d7eff77eaff98914e6c.zip
Remove unused variable
-rw-r--r--src/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index e7751de..5ade56a 100644
--- a/src/node.c
+++ b/src/node.c
@@ -24,7 +24,6 @@ static void
lilv_node_set_numerics_from_string(LilvNode* val)
{
const char* str = (const char*)sord_node_get_string(val->node);
- char* endptr;
switch (val->type) {
case LILV_VALUE_URI:
@@ -33,10 +32,10 @@ lilv_node_set_numerics_from_string(LilvNode* val)
case LILV_VALUE_BLOB:
break;
case LILV_VALUE_INT:
- val->val.int_val = strtol(str, &endptr, 10);
+ val->val.int_val = strtol(str, NULL, 10);
break;
case LILV_VALUE_FLOAT:
- val->val.float_val = serd_strtod(str, &endptr);
+ val->val.float_val = serd_strtod(str, NULL);
break;
case LILV_VALUE_BOOL:
val->val.bool_val = !strcmp(str, "true");