top: Initialize struct sigaction in before().

This commit is contained in:
Qualys Security Advisory authored and Craig Small committed 2018-05-19 07:32:34 +10:00
1 parent d69966962c
commit 7fc7062127
1 file changed
+1
+1
View File
@@ -3594,6 +3594,7 @@ static void before (char *me) {
#define SIGRTMAX 32
#endif
// lastly, establish a robust signals environment
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);
// with user position preserved through SIGWINCH, we must avoid SA_RESTART
sa.sa_flags = 0;