[systemd-commits] src/libsystemd-terminal

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Fri Jul 18 04:32:51 PDT 2014


 src/libsystemd-terminal/term-parser.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 41cb81eab988920ef35032ecba7002e06b927594
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Fri Jul 18 13:32:01 2014 +0200

    terminal: silence warning

diff --git a/src/libsystemd-terminal/term-parser.c b/src/libsystemd-terminal/term-parser.c
index 1c96852..c8c1d13 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));



More information about the systemd-commits mailing list