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:
1 parent
3e905921da
commit
fcd4156ea0
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user