forked from enlightenment/efl
test: Initialize structure on declarations with { 0 }.
No need to call memset manually.
This commit is contained in:
parent
d1b1290c72
commit
061d93a19a
|
@ -514,9 +514,7 @@ _state_update(State *st)
|
|||
|
||||
for (row = 0, gy = 0; gy < h; gy += gszh, row++)
|
||||
{
|
||||
Vertex3 vo[4];
|
||||
|
||||
memset(vo, 0, sizeof (vo));
|
||||
Vertex3 vo[4] = { 0 };
|
||||
|
||||
if (b > 0) nn = num + st->slices_h - row - 1;
|
||||
else nn = num + row;
|
||||
|
|
|
@ -364,9 +364,8 @@ void
|
|||
test_focus_custom(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *fr, *bx, *bx2, *bt, *spinner, *sp, *chk;
|
||||
char win_focus_theme[PATH_MAX];
|
||||
char win_focus_theme[PATH_MAX] = { 0 };
|
||||
|
||||
memset(win_focus_theme, 0, sizeof(win_focus_theme));
|
||||
sprintf(win_focus_theme, "%s/objects/test_focus_custom.edj", elm_app_data_dir_get());
|
||||
|
||||
elm_theme_overlay_add(NULL, win_focus_theme);
|
||||
|
|
Loading…
Reference in New Issue