summaryrefslogtreecommitdiff
path: root/src/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utf8.c b/src/utf8.c
index a4449dd..f572042 100644
--- a/src/utf8.c
+++ b/src/utf8.c
@@ -134,14 +134,12 @@ void utf8proc_detab(cmark_strbuf *ob, const uint8_t *line, bufsize_t size)
break;
}
i += charlen;
- }
- else if (line[i] == '\0') {
+ } else if (line[i] == '\0') {
// ASCII NUL is technically valid but rejected
// for security reasons.
charlen = 1;
break;
- }
- else {
+ } else {
i++;
}