diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-07-18 13:32:01 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-07-18 13:32:40 +0200 |
commit | 41cb81eab988920ef35032ecba7002e06b927594 (patch) | |
tree | 84a9e76cfdef80ff8ca32699262e70101fdb0d15 /src/libsystemd-terminal | |
parent | d243773263630f1cbc5868a12476b17c335abec8 (diff) |
terminal: silence warning
Diffstat (limited to 'src/libsystemd-terminal')
-rw-r--r-- | src/libsystemd-terminal/term-parser.c | 3 |
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)); |