summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:59:56 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:59:56 +0100
commit139153cf2c18d83c64efbe4bbf96a1b2e388fdf6 (patch)
tree54972f37194ccf3b00ff6f51d9a49d0691f346da
parent0c4131d1be48af944f048b9a3bd37e93eb4450e2 (diff)
downloadenlightenment-139153cf2c18d83c64efbe4bbf96a1b2e388fdf6.tar.gz
Initialize siginfo_t
If we don't run the ptrace below, siginfo_t should be initialized. Fixes CID 1039767
-rw-r--r--src/bin/e_start_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
index 64aa5d4c72..a1ecfcb70d 100644
--- a/src/bin/e_start_main.c
+++ b/src/bin/e_start_main.c
@@ -523,6 +523,7 @@ main(int argc, char **argv)
int r = 0;
int back;
+ memset(&sig, 0, sizeof(siginfo_t));
#ifdef HAVE_SYS_PTRACE_H
if (!really_know)
r = ptrace(PT_GETSIGINFO, child, NULL, &sig);