aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;