uterm_input: fix initializing device list
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 5 May 2012 20:37:21 +0000 (22:37 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 5 May 2012 20:37:21 +0000 (22:37 +0200)
kmscon_dlist heads must be initialized and cannot be set to NULL by
default!

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_input.c

index 6c7152c..44758e3 100644 (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)