uterm_input: fix initializing device list
kmscon_dlist heads must be initialized and cannot be set to NULL by default! Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
3e905921da
commit
fcd4156ea0
@ -247,6 +247,7 @@ int uterm_input_new(struct uterm_input **out,
|
||||
memset(input, 0, sizeof(*input));
|
||||
input->ref = 1;
|
||||
input->eloop = eloop;
|
||||
kmscon_dlist_init(&input->devices);
|
||||
|
||||
ret = kmscon_hook_new(&input->hook);
|
||||
if (ret)
|
||||
|
Loading…
x
Reference in New Issue
Block a user