yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=5bb2f5dbb3fc9c2c3f9c00dde7f87f963014f5c6
commit 5bb2f5dbb3fc9c2c3f9c00dde7f87f963014f5c6 Author: Yakov Goldberg <[email protected]> Date: Mon Nov 9 15:19:51 2015 +0200 Add more parameters checks in eid_rename() --- src/lib/gui_widget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/gui_widget.c b/src/lib/gui_widget.c index 589e558..af78dde 100644 --- a/src/lib/gui_widget.c +++ b/src/lib/gui_widget.c @@ -870,6 +870,8 @@ Eina_Bool eid_rename(Eid *eid, const char *str) { if (!IS_ID_VALID(eid)) return EINA_FALSE; + if (!str) return EINA_FALSE; + if (!strcmp(eid_name_get(eid), str)) return EINA_FALSE; const Gui_Context *ctx = gui_context_get_by_eid(eid); if (gui_context_eid_get_by_name(ctx, str)) { --
