From 9e5013f51bd3f9bf74c1e3552aa0667d29a42dd0 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 1 Jul 2012 15:45:54 +0200 Subject: [PATCH] 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 --- src/uterm_vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uterm_vt.c b/src/uterm_vt.c index b39e1f3..9da84b6 100644 --- a/src/uterm_vt.c +++ b/src/uterm_vt.c @@ -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: