uterm: vt: correctly initialize ret to 0
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 1 Jul 2012 14:11:10 +0000 (16:11 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 1 Jul 2012 14:11:10 +0000 (16:11 +0200)
We need to return "true", not "false" if a mode is unknown. Otherwise, we
will block the VT subsystem.

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

index 9da84b6..ef70468 100644 (file)
@@ -93,7 +93,7 @@ static bool vt_event(struct kmscon_vt *ovt, enum kmscon_vt_action action,
                     void *data)
 {
        struct uterm_vt *vt = data;
-       int ret = true;
+       int ret = 0;
 
        switch (action) {
        case KMSCON_VT_ENTER: