forked from enlightenment/efl
ecore-wl2: handle null global has in ecore_wl2_display_globals_get()
This commit is contained in:
parent
3a8cfeb6d6
commit
022dda2f68
|
@ -687,7 +687,7 @@ EAPI Eina_Iterator *
|
|||
ecore_wl2_display_globals_get(Ecore_Wl2_Display *display)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
|
||||
return eina_hash_iterator_data_new(display->globals);
|
||||
return display->globals ? eina_hash_iterator_data_new(display->globals) : NULL;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
|
Loading…
Reference in New Issue