Initialize siginfo_t

If we don't run the ptrace below, siginfo_t should be initialized.

Fixes CID 1039767
This commit is contained in:
Sebastian Dransfeld 2013-12-07 21:59:56 +01:00
parent 0c4131d1be
commit 139153cf2c
1 changed files with 1 additions and 0 deletions

View File

@ -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);