aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/env.c3
-rw-r--r--src/n3.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/src/env.c b/src/env.c
index 295e7fcf..1b5617fd 100644
--- a/src/env.c
+++ b/src/env.c
@@ -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
diff --git a/src/n3.c b/src/n3.c
index 88b8ff1b..a2825ca7 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -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