aboutsummaryrefslogtreecommitdiffstats
path: root/src/string.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-24 18:42:30 +0000
committerDavid Robillard <d@drobilla.net>2011-12-24 18:42:30 +0000
commit58dba94bf0cb121873476dff866d0cb08b0260a6 (patch)
treebcca2261f5a6ba4aa77e10608f17ea725830d465 /src/string.c
parentd7c7e4910aae57156d70ceea5918477d8455c4d8 (diff)
downloadserd-58dba94bf0cb121873476dff866d0cb08b0260a6.tar.gz
serd-58dba94bf0cb121873476dff866d0cb08b0260a6.tar.bz2
serd-58dba94bf0cb121873476dff866d0cb08b0260a6.zip
Test serd_strlen and serd_strerror.
git-svn-id: http://svn.drobilla.net/serd/trunk@265 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 35a3bbc8..40828612 100644
--- a/src/string.c
+++ b/src/string.c
@@ -39,6 +39,7 @@ serd_strlen(const uint8_t* str, size_t* n_bytes, SerdNodeFlags* flags)
{
size_t n_chars = 0;
size_t i = 0;
+ *flags = 0;
for (; str[i]; ++i) {
if ((str[i] & 0xC0) != 0x80) {
// Does not start with `10', start of a new character