aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 14:16:06 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 14:16:06 +0000
commit463db7f4af10d5c5749a5468102583c44e92829a (patch)
tree3d3fc6a5ac482b2a1a282bccba3a31e72f747087 /src/env.c
parentf2a023926ed5eab26ef70a61f83f67d5dba4c902 (diff)
downloadserd-463db7f4af10d5c5749a5468102583c44e92829a.tar.gz
serd-463db7f4af10d5c5749a5468102583c44e92829a.tar.bz2
serd-463db7f4af10d5c5749a5468102583c44e92829a.zip
Add string measuring sanity check.
git-svn-id: http://svn.drobilla.net/serd/trunk@188 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.c b/src/env.c
index a9b8e474..4ce28329 100644
--- a/src/env.c
+++ b/src/env.c
@@ -112,6 +112,7 @@ serd_env_add(SerdEnv* env,
const SerdNode* uri)
{
assert(name && uri);
+ assert(name->n_bytes == strlen((const char*)name->buf));
SerdPrefix* const prefix = serd_env_find(env, name->buf, name->n_bytes);
if (prefix) {
SerdNode old_prefix_uri = prefix->uri;