every - ensure all structs are zeroed out

valgrind spotted this, so fix.
This commit is contained in:
Carsten Haitzler 2019-07-31 11:48:03 +01:00
parent 1fbcfb2d93
commit b88138cacb
2 changed files with 2 additions and 2 deletions

View File

@ -1512,7 +1512,7 @@ _evry_state_new(Evry_Selector *sel, Eina_List *plugins)
if (!s) return NULL;
s->inp = malloc(INPUTLEN);
s->inp = calloc(1, INPUTLEN);
s->inp[0] = 0;
s->input = s->inp;
s->plugins = plugins;

View File

@ -1548,7 +1548,7 @@ _scan_idler(void *data EINA_UNUSED)
EINA_LIST_FREE(exe_files, s)
{
ee = malloc(sizeof(E_Exe));
ee = calloc(1, sizeof(E_Exe));
if (!ee) continue ;
ee->path = s;