aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/n3.c b/src/n3.c
index ece6c1a3..861a59c0 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1348,11 +1348,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