From: Dmitry V. Levin Date: Fri, 18 Sep 2015 13:04:02 +0000 (+0000) Subject: Properly initialize siginfo_t object passed to print_stopped function X-Git-Tag: v4.11~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=135f5cf634b2fbf3b10f3f5c9c596418fbd07273;p=strace Properly initialize siginfo_t object passed to print_stopped function * strace.c (trace): Clear the whole siginfo_t variable before passing it to ptrace(PTRACE_GETSIGINFO) because the latter may initialize only a part of the structure. --- diff --git a/strace.c b/strace.c index 9b93e796..d610f707 100644 --- a/strace.c +++ b/strace.c @@ -2194,7 +2194,7 @@ trace(void) } if (sig != syscall_trap_sig) { - siginfo_t si; + siginfo_t si = {}; /* * True if tracee is stopped by signal