forked from enlightenment/enlightenment
every - ensure all structs are zeroed out
valgrind spotted this, so fix.
This commit is contained in:
parent
1fbcfb2d93
commit
b88138cacb
|
@ -1512,7 +1512,7 @@ _evry_state_new(Evry_Selector *sel, Eina_List *plugins)
|
||||||
|
|
||||||
if (!s) return NULL;
|
if (!s) return NULL;
|
||||||
|
|
||||||
s->inp = malloc(INPUTLEN);
|
s->inp = calloc(1, INPUTLEN);
|
||||||
s->inp[0] = 0;
|
s->inp[0] = 0;
|
||||||
s->input = s->inp;
|
s->input = s->inp;
|
||||||
s->plugins = plugins;
|
s->plugins = plugins;
|
||||||
|
|
|
@ -1548,7 +1548,7 @@ _scan_idler(void *data EINA_UNUSED)
|
||||||
|
|
||||||
EINA_LIST_FREE(exe_files, s)
|
EINA_LIST_FREE(exe_files, s)
|
||||||
{
|
{
|
||||||
ee = malloc(sizeof(E_Exe));
|
ee = calloc(1, sizeof(E_Exe));
|
||||||
if (!ee) continue ;
|
if (!ee) continue ;
|
||||||
|
|
||||||
ee->path = s;
|
ee->path = s;
|
||||||
|
|
Loading…
Reference in New Issue