forked from enlightenment/efl
Use memset on fdata for edje_color_class_list and edje_text_class_list based on
help from RbdPngn, Seb & Rephorm...thanks guys :) SVN revision: 28518
This commit is contained in:
parent
dee90b02dd
commit
7bab06fcb4
|
@ -263,16 +263,12 @@ edje_color_class_del(const char *color_class)
|
||||||
Evas_List *
|
Evas_List *
|
||||||
edje_color_class_list(void)
|
edje_color_class_list(void)
|
||||||
{
|
{
|
||||||
Edje_List_Foreach_Data *fdata;
|
Edje_List_Foreach_Data fdata;
|
||||||
Evas_List *list;
|
|
||||||
|
|
||||||
fdata = calloc(1, sizeof(Edje_List_Foreach_Data));
|
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
|
||||||
evas_hash_foreach(_edje_color_class_member_hash, _edje_color_class_list_foreach, fdata);
|
evas_hash_foreach(_edje_color_class_member_hash, _edje_color_class_list_foreach, &fdata);
|
||||||
|
|
||||||
list = fdata->list;
|
return fdata.list;
|
||||||
free(fdata);
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Bool
|
static Evas_Bool
|
||||||
|
@ -527,16 +523,12 @@ edje_text_class_del(const char *text_class)
|
||||||
Evas_List *
|
Evas_List *
|
||||||
edje_text_class_list(void)
|
edje_text_class_list(void)
|
||||||
{
|
{
|
||||||
Edje_List_Foreach_Data *fdata;
|
Edje_List_Foreach_Data fdata;
|
||||||
Evas_List *list;
|
|
||||||
|
|
||||||
fdata = calloc(1, sizeof(Edje_List_Foreach_Data));
|
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
|
||||||
evas_hash_foreach(_edje_text_class_member_hash, _edje_text_class_list_foreach, fdata);
|
evas_hash_foreach(_edje_text_class_member_hash, _edje_text_class_list_foreach, &fdata);
|
||||||
|
|
||||||
list = fdata->list;
|
return fdata.list;
|
||||||
free(fdata);
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Bool
|
static Evas_Bool
|
||||||
|
|
Loading…
Reference in New Issue