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 4b1ed676..a6250401 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1324,11 +1324,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 true;
+ return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n");
}
static bool