diff options
author | David Robillard <d@drobilla.net> | 2011-05-24 14:16:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-24 14:16:06 +0000 |
commit | 463db7f4af10d5c5749a5468102583c44e92829a (patch) | |
tree | 3d3fc6a5ac482b2a1a282bccba3a31e72f747087 | |
parent | f2a023926ed5eab26ef70a61f83f67d5dba4c902 (diff) | |
download | serd-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
-rw-r--r-- | src/env.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |