ecore_evas: Avoid safety check error log

If an engine can not be used (eg. GL inside a standard Xephyr),
some ERR logs will be printed out by ecore_evas_x. This patch
avoids extra eina_safety error logs from using a NULL pointer.
This commit is contained in:
Jean-Philippe Andre 2017-02-14 15:09:36 +09:00
parent 5d55fe0321
commit 5be33ba1aa
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ _ecore_evas_cursors_init(Ecore_Evas *ee)
const Eina_List *devs, *l;
Efl_Input_Device *dev;
EINA_SAFETY_ON_NULL_RETURN_VAL(ee, EINA_FALSE);
if (!ee) return EINA_FALSE;
ee->prop.cursors = eina_hash_pointer_new(EINA_FREE_CB(_ecore_evas_cursor_element_del));
EINA_SAFETY_ON_NULL_RETURN_VAL(ee->prop.cursors, EINA_FALSE);