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:
David Herrmann 2012-05-05 22:37:21 +02:00
parent 3e905921da
commit fcd4156ea0

View File

@ -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)