summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 18:56:42 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 18:56:42 +0000
commitdbd8fdc5bb5f50ff030259d1ea5a382325658e43 (patch)
tree4bfa5a470315d98af7ccac6cbb4dfc03be8a3043 /src/util.c
parent876c5e305254158827ca5f70d7ec138af3f09ff0 (diff)
downloadlilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.tar.gz
lilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.tar.bz2
lilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.zip
Re-use the SordNode of blank nodes when copying.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3309 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/util.c b/src/util.c
index 9f04a2d..91a9f33 100644
--- a/src/util.c
+++ b/src/util.c
@@ -62,16 +62,7 @@ lilv_strdup(const char* str)
const char*
lilv_uri_to_path(const char* uri)
{
-#ifdef __WIN32__
- if (!strncmp(uri, "file:///", (size_t)8)) {
- return (char*)(uri + 8);
- }
-#else
- if (!strncmp(uri, "file://", (size_t)7)) {
- return (char*)(uri + 7);
- }
-#endif
- return NULL;
+ return (const char*)serd_uri_to_path((const uint8_t*)uri);
}
/** Return the current LANG converted to Turtle (i.e. RFC3066) style.