From: Hosang Kim Date: Mon, 7 Aug 2023 06:47:34 +0000 (+0900) Subject: ecore_wl2_cursor: initalize cursor_config when cursor_config is NULL X-Git-Tag: accepted/tizen/unified/20230814.121015~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F296913%2F1;p=platform%2Fupstream%2Fefl.git ecore_wl2_cursor: initalize cursor_config when cursor_config is NULL Change-Id: I6e9a261972d0a701124fa2104999e549247cdde2 --- diff --git a/src/lib/ecore_wl2/ecore_wl2_cursor.c b/src/lib/ecore_wl2/ecore_wl2_cursor.c index 3f62cb2..aa192fd 100644 --- a/src/lib/ecore_wl2/ecore_wl2_cursor.c +++ b/src/lib/ecore_wl2/ecore_wl2_cursor.c @@ -184,6 +184,8 @@ _ecore_wl2_cursor_config_reload(void) void _ecore_wl2_cursor_config_init(void) { + if (_cursor_config) + return; eet_init(); eio_init(); _cursor_desc_init(); @@ -214,6 +216,7 @@ EAPI void ecore_wl2_cursor_config_name_set(const char* name) { if (!name) return; + if (!_cursor_config) _ecore_wl2_cursor_config_init(); eina_stringshare_replace(&(_cursor_config->name), name); _ecore_wl2_cursor_config_save();