aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/n3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/n3.c b/src/n3.c
index 460e0e9d..b0c958e2 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -740,12 +740,12 @@ read_IRIREF(SerdReader* const reader, Ref* const dest)
SERD_ERR_BAD_SYNTAX,
"invalid IRI character (escape %%%02X)\n",
(unsigned)c);
- if (reader->strict) {
+ if (!reader->strict) {
+ st = SERD_FAILURE;
+ push_byte(reader, *dest, c);
+ } else {
break;
}
-
- st = SERD_FAILURE;
- push_byte(reader, *dest, c);
} else if (!(c & 0x80)) {
push_byte(reader, *dest, c);
} else if (read_utf8_character(reader, *dest, (uint8_t)c)) {