chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
terminal: fix missing hashmap_new() conversions
[elogind.git]
/
src
/
libsystemd-terminal
/
term-parser.c
diff --git
a/src/libsystemd-terminal/term-parser.c
b/src/libsystemd-terminal/term-parser.c
index 1c968520bd2e00fc1520efb766422d7beb0ee9fe..c8c1d13d2e85923051fa732c6ee35e75a181fda7 100644
(file)
--- 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));