diff options
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -210,6 +210,13 @@ serd_env_expand_node(const SerdEnv* env, const SerdNode* node) { switch (node->type) { + case SERD_NOTHING: + case SERD_LITERAL: + break; + case SERD_URI: { + SerdURI ignored; + return serd_node_new_uri_from_node(node, &env->base_uri, &ignored); + } case SERD_CURIE: { SerdChunk prefix; SerdChunk suffix; @@ -223,13 +230,10 @@ serd_env_expand_node(const SerdEnv* env, ret.n_chars = serd_strlen(buf, NULL, NULL); return ret; } - case SERD_URI: { - SerdURI ignored; - return serd_node_new_uri_from_node(node, &env->base_uri, &ignored); - } - default: - return SERD_NODE_NULL; + case SERD_BLANK: + break; } + return SERD_NODE_NULL; } void |