From 9588a5e3088b6bb9a18a6a2f12260e7b0e036d39 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Wed, 23 Mar 2022 13:23:19 +0900 Subject: [PATCH] e_input: fix wrong return statement from e_input_device_output_name_set() Change-Id: I0797809c1d941c1da260ef1c03619c1775e3dedc --- src/bin/e_input_device.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_input_device.c b/src/bin/e_input_device.c index f2eefa5b3c..62273ce5c1 100644 --- a/src/bin/e_input_device.c +++ b/src/bin/e_input_device.c @@ -1353,7 +1353,7 @@ EINTERN Eina_Bool e_input_device_output_name_set(E_Input_Device *dev, const char *input, const char *output) { E_Input_Seat *seat; - E_Input_Evdev *edev; + E_Input_Evdev *edev = NULL; Eina_List *l, *ll; Eina_Bool found = EINA_FALSE; @@ -1373,12 +1373,13 @@ e_input_device_output_name_set(E_Input_Device *dev, const char *input, const cha break; } } + if (found) break; } if (!found || !edev) { ERR("Failed to find input device: %s", input); - return EINA_TRUE; + return EINA_FALSE; } if (e_output_find(output)) @@ -1393,4 +1394,4 @@ e_input_device_output_name_set(E_Input_Device *dev, const char *input, const cha ERR("Failed to find output device: %s", output); return EINA_FALSE; -} \ No newline at end of file +} -- 2.34.1