summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-terminal')
-rw-r--r--src/libsystemd-terminal/term-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/term-parser.c b/src/libsystemd-terminal/term-parser.c
index 1c968520bd..c8c1d13d2e 100644
--- a/src/libsystemd-terminal/term-parser.c
+++ b/src/libsystemd-terminal/term-parser.c
@@ -206,7 +206,8 @@ const uint32_t *term_utf8_decode(term_utf8 *p, size_t *out_len, char c) {
p->n_bytes = 4;
p->i_bytes = 1;
p->valid = 1;
- }
+ } else
+ assert_not_reached("Should not happen");
p->chars[0] = byte;
p->ucs4 = t << (6 * (p->n_bytes - p->i_bytes));