forked from enlightenment/efl
Evas: fix memset bug and no need to check returned value of alloca
SVN revision: 79064
This commit is contained in:
parent
16b4384529
commit
f45f7ab5b1
|
@ -1415,16 +1415,10 @@ _box_layout_flow_horizontal(Eo *o, void *_pd, va_list *list EINA_UNUSED)
|
||||||
|
|
||||||
/* *per row* arrays */
|
/* *per row* arrays */
|
||||||
row_max_h = (int *)alloca(sizeof(int) * n_children);
|
row_max_h = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!row_max_h)
|
|
||||||
return;
|
|
||||||
row_break = (int *)alloca(sizeof(int) * n_children);
|
row_break = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!row_break)
|
|
||||||
return;
|
|
||||||
row_width = (int *)alloca(sizeof(int) * n_children);
|
row_width = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!row_width)
|
|
||||||
return;
|
|
||||||
|
|
||||||
memset(row_width, 0, sizeof(row_width));
|
memset(row_width, 0, sizeof(int) * n_children);
|
||||||
|
|
||||||
evas_object_geometry_get(o, &x, &y, &w, &h);
|
evas_object_geometry_get(o, &x, &y, &w, &h);
|
||||||
|
|
||||||
|
@ -1603,16 +1597,10 @@ _box_layout_flow_vertical(Eo *o, void *_pd, va_list *list EINA_UNUSED)
|
||||||
|
|
||||||
/* *per col* arrays */
|
/* *per col* arrays */
|
||||||
col_max_w = (int *)alloca(sizeof(int) * n_children);
|
col_max_w = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!col_max_w)
|
|
||||||
return;
|
|
||||||
col_break = (int *)alloca(sizeof(int) * n_children);
|
col_break = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!col_break)
|
|
||||||
return;
|
|
||||||
col_height = (int *)alloca(sizeof(int) * n_children);
|
col_height = (int *)alloca(sizeof(int) * n_children);
|
||||||
if (!col_height)
|
|
||||||
return;
|
|
||||||
|
|
||||||
memset(col_height, 0, sizeof(col_height));
|
memset(col_height, 0, sizeof(int) * n_children);
|
||||||
|
|
||||||
evas_object_geometry_get(o, &x, &y, &w, &h);
|
evas_object_geometry_get(o, &x, &y, &w, &h);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue