devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2437d5327806c3b1c489adf4e78018a7bcfa4ced

commit 2437d5327806c3b1c489adf4e78018a7bcfa4ced
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jul 13 11:40:12 2016 -0400

    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 <cp.mich...@samsung.com>
---
 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 5b2b1c5..daa3675 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);
 }

-- 


Reply via email to