diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 3 | ||||
-rw-r--r-- | src/n3.c | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -275,8 +275,9 @@ serd_env_expand(const SerdEnv* env, const SerdNode* node) return serd_new_resolved_uri_i( serd_node_get_string(node), &env->base_uri); default: - return NULL; + break; } + return NULL; } void @@ -1357,11 +1357,10 @@ read_directive(SerdReader* reader) switch (peek_byte(reader)) { case 'B': case 'b': return read_base(reader, sparql, true); case 'P': case 'p': return read_prefixID(reader, sparql, true); - default: - return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n"); + default: break; } - return SERD_SUCCESS; + return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n"); } static SerdStatus |