diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index 65836966897..c1f381e7855 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -154,6 +154,7 @@ DECLARE_FUNCTIONS(sigaction) static void change_sigpipe(decltype(SIG_DFL) new_handler) { struct sigaction sa; + memset(&sa, 0, sizeof(sa)); sa.sa_handler = new_handler; sigaction(SIGPIPE, &sa, nullptr); }