rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=1fa5892ef0b8f16089e417a5f3fea0eec629c024

commit 1fa5892ef0b8f16089e417a5f3fea0eec629c024
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Sep 22 17:26:07 2016 +0300

    group_navigator: fix possible SIGSEV on state resource find
    
    @fix
---
 src/bin/ui/workspace/group_navigator.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/bin/ui/workspace/group_navigator.c 
b/src/bin/ui/workspace/group_navigator.c
index e6f095a..23cc473 100644
--- a/src/bin/ui/workspace/group_navigator.c
+++ b/src/bin/ui/workspace/group_navigator.c
@@ -1244,8 +1244,8 @@ _popup_add_state_close_cb(void *data,
    if (pb != BTN_OK) return;
 
    Part_List *pl = data;
-   const char *name;
-   double val;
+   const char *name, *name_from;
+   double val, val_from;
    State2 *state_from = NULL;
    Eina_Stringshare *msg;
    Change *change;
@@ -1269,9 +1269,10 @@ _popup_add_state_close_cb(void *data,
      }
    else
      {
+        state_name_split(pl->popup.state_selected->data, &name_from, 
&val_from);
         state_from = (State2 *)resource_manager_v_find(pl->part->states,
-                                                       state_from->common.name,
-                                                       state_from->val);
+                                                       name_from,
+                                                       val_from);
         msg = eina_stringshare_printf(_("added new state \"%s\" %.2f as copy 
of \"%s\" %.2f"),
                                       name, val, state_from->common.name, 
state_from->val);
         change = change_add(msg);

-- 


Reply via email to