uterm: vt: silence gcc warning

We initialize the variable to "true" to silence gcc warnings that we might
get an uninitialized variable (which we really cannot get here).

Anyway, in the future, if the number of types may increase, the correct
way to deal with unknown types is returning "true" so do this by default
now.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-01 15:45:54 +02:00
parent 6356dae1da
commit 9e5013f51b

View 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;
int ret = true;
switch (action) {
case KMSCON_VT_ENTER: