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); }