yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=dc33b9c32fb2c08a7ff2484d1d9c6e0e20eb95cd

commit dc33b9c32fb2c08a7ff2484d1d9c6e0e20eb95cd
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Mon May 18 17:49:48 2015 +0300

    Enum management refactoring - fix 1
---
 src/lib/database.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lib/database.c b/src/lib/database.c
index 9a44083..fb74f68 100644
--- a/src/lib/database.c
+++ b/src/lib/database.c
@@ -1584,12 +1584,11 @@ db_op_desc_nth_par_enum_get(const Op_Desc *op_desc, 
unsigned int idx, int enum_v
      return NULL;
    const char *enum_type_name = param_desc->gui_type_name;
    const Eina_List *lst = eina_hash_find(enum_types_table, enum_type_name), 
*itr;
-   const char *enum_str;
-   EINA_LIST_FOREACH(lst, itr, enum_str)
+   Enum_Info *ei;
+   EINA_LIST_FOREACH(lst, itr, ei)
      {
-        Enum_Info *ei = eina_hash_find(enum_table, enum_str);
         if (ei->enum_val == enum_value)
-          return enum_str;
+          return ei->enum_name;
      }
    return NULL;
 }

-- 


Reply via email to