summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-31 11:48:03 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-31 13:38:46 +0100
commitb88138cacb87a4508aa73c73f834684d171fddce (patch)
tree1a5fc4601c37342943c06a18ea057dce7041ddcb /src/modules
parent1fbcfb2d93a3f5b2b6badc19982863e459e7e646 (diff)
every - ensure all structs are zeroed out
valgrind spotted this, so fix.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/everything/evry.c2
-rw-r--r--src/modules/everything/evry_plug_apps.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/everything/evry.c b/src/modules/everything/evry.c
index 80eecdc..b1a516a 100644
--- a/src/modules/everything/evry.c
+++ b/src/modules/everything/evry.c
@@ -1512,7 +1512,7 @@ _evry_state_new(Evry_Selector *sel, Eina_List *plugins)
1512 1512
1513 if (!s) return NULL; 1513 if (!s) return NULL;
1514 1514
1515 s->inp = malloc(INPUTLEN); 1515 s->inp = calloc(1, INPUTLEN);
1516 s->inp[0] = 0; 1516 s->inp[0] = 0;
1517 s->input = s->inp; 1517 s->input = s->inp;
1518 s->plugins = plugins; 1518 s->plugins = plugins;
diff --git a/src/modules/everything/evry_plug_apps.c b/src/modules/everything/evry_plug_apps.c
index 0ab6dc2..3130a03 100644
--- a/src/modules/everything/evry_plug_apps.c
+++ b/src/modules/everything/evry_plug_apps.c
@@ -1548,7 +1548,7 @@ _scan_idler(void *data EINA_UNUSED)
1548 1548
1549 EINA_LIST_FREE(exe_files, s) 1549 EINA_LIST_FREE(exe_files, s)
1550 { 1550 {
1551 ee = malloc(sizeof(E_Exe)); 1551 ee = calloc(1, sizeof(E_Exe));
1552 if (!ee) continue ; 1552 if (!ee) continue ;
1553 1553
1554 ee->path = s; 1554 ee->path = s;