summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-02-26 15:28:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-02-26 15:28:06 +0900
commitc422359d2efbfed4e6d4e19434d33e9381e023cc (patch)
tree35b56cae6438a5c8588116e1ca04587bd1dcc9eb
parent21b4321d4c28552a537b2b9bb6ef7653ca31087e (diff)
ecore signal - memset data about to be sent over to 0 first
makes valgrind happier and less noise, though not strictly needed, thus not fixing a bug...
-rw-r--r--src/lib/ecore/ecore_signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_signal.c b/src/lib/ecore/ecore_signal.c
index b40ad3db70..98934e63b3 100644
--- a/src/lib/ecore/ecore_signal.c
+++ b/src/lib/ecore/ecore_signal.c
@@ -154,6 +154,7 @@ _ecore_signal_callback(int sig, siginfo_t *si, void *foo EINA_UNUSED)
154{ 154{
155 Signal_Data sdata; 155 Signal_Data sdata;
156 156
157 memset(&sdata, 0, sizeof(Signal_Data));
157 sdata.sig = sig; 158 sdata.sig = sig;
158 sdata.info = *si; 159 sdata.info = *si;
159 if (sdata.sig >= 0) 160 if (sdata.sig >= 0)