aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-12 13:25:34 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-12 15:02:34 +0100
commitf4f44c777ad410eaea152cc8745ca641ea2c2d5a (patch)
tree6602627a454de3c4aa1ee7a3e602ee823497c095
parentecore_audio: Add missing break in _format_set() (diff)
downloadefl-f4f44c777ad410eaea152cc8745ca641ea2c2d5a.tar.gz
Reduce additional call to eina_stringshare_replace.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 6f56e9f666..8352552877 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -238,11 +238,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
_pointer_update_stop(input);
- eina_stringshare_replace(&input->cursor_name, cursor_name);
-
/* No cursor. Set to default Left Pointer */
if (!cursor_name)
eina_stringshare_replace(&input->cursor_name, "left_ptr");
+ else
+ eina_stringshare_replace(&input->cursor_name, cursor_name);
/* try to get this cursor from the theme */
if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))