summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-08 02:20:44 +0000
committerDavid Robillard <d@drobilla.net>2014-08-08 02:20:44 +0000
commite6e16adb5473459ec2a0732cbf10bcb6fd7ffe2a (patch)
tree716629bc038b7bcc87696ae559760d0ba712749d /src
parenta99251eb4fecfce5fab83f509f3924407f4ae7c6 (diff)
downloadlilv-e6e16adb5473459ec2a0732cbf10bcb6fd7ffe2a.tar.gz
lilv-e6e16adb5473459ec2a0732cbf10bcb6fd7ffe2a.tar.bz2
lilv-e6e16adb5473459ec2a0732cbf10bcb6fd7ffe2a.zip
Fix various warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5421 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c
index 6286446..0ba5e73 100644
--- a/src/util.c
+++ b/src/util.c
@@ -92,10 +92,10 @@ lilv_strdup(const char* str)
return NULL;
}
- const size_t len = strlen(str);
- char* dup = (char*)malloc(len + 1);
- memcpy(dup, str, len + 1);
- return dup;
+ const size_t len = strlen(str);
+ char* copy = (char*)malloc(len + 1);
+ memcpy(copy, str, len + 1);
+ return copy;
}
const char*