From 2437d5327806c3b1c489adf4e78018a7bcfa4ced Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 13 Jul 2016 11:40:12 -0400 Subject: [PATCH] elput: Cleanup erroneous errors when trying to get output name When we make calls to get an Input device's output name, if the device does not have an output name it's not actually an error so just return NULL with less noise @fix Signed-off-by: Chris Michael --- src/lib/elput/elput_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c index 5b2b1c5b5b..daa3675ff6 100644 --- a/src/lib/elput/elput_input.c +++ b/src/lib/elput/elput_input.c @@ -634,7 +634,7 @@ EAPI Eina_Stringshare * elput_input_device_output_name_get(Elput_Device *device) { EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL); - EINA_SAFETY_ON_NULL_RETURN_VAL(device->output_name, NULL); + if (!device->output_name) return NULL; return eina_stringshare_ref(device->output_name); }