chiark / gitweb /
terminal: silence warning
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 18 Jul 2014 11:32:01 +0000 (13:32 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 18 Jul 2014 11:32:40 +0000 (13:32 +0200)
src/libsystemd-terminal/term-parser.c

index 1c968520bd2e00fc1520efb766422d7beb0ee9fe..c8c1d13d2e85923051fa732c6ee35e75a181fda7 100644 (file)
@@ -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));