From e03f36e07742ac8130bb624aae29b100ed7599f3 Mon Sep 17 00:00:00 2001 From: AuDoan Date: Tue, 31 Jan 2023 17:20:26 +0700 Subject: IlmControl: fix no warning in a function In function input_listener_input_acceptance, variable "surface_found" should be initialized to 0. Only then "if(!surface_found)" will take effect. Signed-off-by: Au Doan Ngoc --- ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c index f1e5404..b4fdfbf 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -833,7 +833,7 @@ input_listener_input_acceptance(void *data, struct accepted_seat *accepted_seat, *next; struct wayland_context *ctx = data; struct surface_context *surface_ctx = NULL; - int surface_found = 1; + int surface_found = 0; int accepted_seat_found = 0; wl_list_for_each(surface_ctx, &ctx->list_surface, link) { -- cgit v1.2.1