summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-14 15:09:36 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-14 15:21:50 +0900
commit5be33ba1aa50f62fb504c080ed6440ffa5192356 (patch)
tree2cf12d2c9394d7813b687443a52a38a41293a6b1 /src/lib/ecore_evas
parent5d55fe0321363cc3a099ddd72b3874de81aac88b (diff)
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.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 8553897475..18ef097867 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -317,7 +317,7 @@ _ecore_evas_cursors_init(Ecore_Evas *ee)
317 const Eina_List *devs, *l; 317 const Eina_List *devs, *l;
318 Efl_Input_Device *dev; 318 Efl_Input_Device *dev;
319 319
320 EINA_SAFETY_ON_NULL_RETURN_VAL(ee, EINA_FALSE); 320 if (!ee) return EINA_FALSE;
321 ee->prop.cursors = eina_hash_pointer_new(EINA_FREE_CB(_ecore_evas_cursor_element_del)); 321 ee->prop.cursors = eina_hash_pointer_new(EINA_FREE_CB(_ecore_evas_cursor_element_del));
322 EINA_SAFETY_ON_NULL_RETURN_VAL(ee->prop.cursors, EINA_FALSE); 322 EINA_SAFETY_ON_NULL_RETURN_VAL(ee->prop.cursors, EINA_FALSE);
323 323