aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c
index b74153ac..5dd9578e 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -679,16 +679,16 @@ read_PN_LOCAL(SerdReader* reader, Ref dest)
while ((c = peek_byte(reader))) { // Middle: (PN_CHARS | '.' | ';')*
if (/*c == '.' || */c == ':') {
push_byte(reader, dest, eat_byte_safe(reader, c));
- } else if (!read_PN_CHARS(reader, dest)){
+ } else if (!read_PN_CHARS(reader, dest)) {
if ((st = read_PLX(reader, dest)) > SERD_FAILURE) {
return st;
- } else if (st != SERD_SUCCESS && !read_PN_CHARS(reader, dest)) {
- return SERD_FAILURE;
+ } else if (st != SERD_SUCCESS) {
+ break;
}
}
}
- return dest;
+ return SERD_SUCCESS;
}
static SerdStatus